mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made segment_image() use the fast version for uint16 pixels.
This commit is contained in:
parent
0a1908d7d0
commit
932ddb40b2
@ -64,7 +64,8 @@ namespace dlib
|
||||
typename in_image_type,
|
||||
typename out_image_type
|
||||
>
|
||||
typename enable_if<is_same_type<typename in_image_type::type,uint8> >::type
|
||||
typename enable_if_c<is_same_type<typename in_image_type::type,uint8>::value ||
|
||||
is_same_type<typename in_image_type::type,uint16>::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<is_same_type<typename in_image_type::type,uint8> >::type
|
||||
typename disable_if_c<is_same_type<typename in_image_type::type,uint8>::value ||
|
||||
is_same_type<typename in_image_type::type,uint16>::value>::type
|
||||
segment_image (
|
||||
const in_image_type& in_img,
|
||||
out_image_type& out_img,
|
||||
|
Loading…
Reference in New Issue
Block a user