From 932ddb40b270943543734a981ebd9b3f16428e58 Mon Sep 17 00:00:00 2001 From: Davis King Date: Thu, 28 Feb 2013 18:07:12 -0500 Subject: [PATCH] Made segment_image() use the fast version for uint16 pixels. --- dlib/image_transforms/segment_image.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlib/image_transforms/segment_image.h b/dlib/image_transforms/segment_image.h index 2c387e4dd..56042625c 100644 --- a/dlib/image_transforms/segment_image.h +++ b/dlib/image_transforms/segment_image.h @@ -64,7 +64,8 @@ namespace dlib typename in_image_type, typename out_image_type > - typename enable_if >::type + typename enable_if_c::value || + is_same_type::value>::type segment_image ( const in_image_type& in_img, out_image_type& out_img, @@ -321,7 +322,8 @@ namespace dlib typename in_image_type, typename out_image_type > - typename disable_if >::type + typename disable_if_c::value || + is_same_type::value>::type segment_image ( const in_image_type& in_img, out_image_type& out_img,