Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
932ddb40
"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c399de396dbb464be0935f910703eff9f11667ad"
Commit
932ddb40
authored
Feb 28, 2013
by
Davis King
Browse files
Made segment_image() use the fast version for uint16 pixels.
parent
0a1908d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dlib/image_transforms/segment_image.h
dlib/image_transforms/segment_image.h
+4
-2
No files found.
dlib/image_transforms/segment_image.h
View file @
932ddb40
...
@@ -64,7 +64,8 @@ namespace dlib
...
@@ -64,7 +64,8 @@ namespace dlib
typename
in_image_type
,
typename
in_image_type
,
typename
out_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
(
segment_image
(
const
in_image_type
&
in_img
,
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
out_image_type
&
out_img
,
...
@@ -321,7 +322,8 @@ namespace dlib
...
@@ -321,7 +322,8 @@ namespace dlib
typename
in_image_type
,
typename
in_image_type
,
typename
out_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
(
segment_image
(
const
in_image_type
&
in_img
,
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
out_image_type
&
out_img
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment