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
2dd28ac0
Commit
2dd28ac0
authored
May 30, 2011
by
Davis King
Browse files
Changed hysteresis_threshold() so it properly handles signed pixel types.
parent
fe69a6e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
dlib/image_transforms/thresholding.h
dlib/image_transforms/thresholding.h
+2
-3
dlib/image_transforms/thresholding_abstract.h
dlib/image_transforms/thresholding_abstract.h
+2
-2
No files found.
dlib/image_transforms/thresholding.h
View file @
2dd28ac0
...
...
@@ -173,8 +173,8 @@ namespace dlib
void
hysteresis_threshold
(
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
unsigned
long
lower_thresh
,
unsigned
long
upper_thresh
typename
pixel_traits
<
typename
in_image_type
::
type
>::
basic_pixel_type
lower_thresh
,
typename
pixel_traits
<
typename
in_image_type
::
type
>::
basic_pixel_type
upper_thresh
)
{
COMPILE_TIME_ASSERT
(
pixel_traits
<
typename
in_image_type
::
type
>::
has_alpha
==
false
);
...
...
@@ -198,7 +198,6 @@ namespace dlib
}
out_img
.
set_size
(
in_img
.
nr
(),
in_img
.
nc
());
assign_all_pixels
(
out_img
,
0
);
const
long
size
=
50
;
long
rstack
[
size
];
...
...
dlib/image_transforms/thresholding_abstract.h
View file @
2dd28ac0
...
...
@@ -78,8 +78,8 @@ namespace dlib
void
hysteresis_threshold
(
const
in_image_type
&
in_img
,
out_image_type
&
out_img
,
unsigned
long
lower_thresh
,
unsigned
long
upper_thresh
typename
pixel_traits
<
typename
in_image_type
::
type
>::
basic_pixel_type
lower_thresh
,
typename
pixel_traits
<
typename
in_image_type
::
type
>::
basic_pixel_type
upper_thresh
);
/*!
requires
...
...
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