Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
2dd28ac0
Commit
2dd28ac0
authored
May 30, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed hysteresis_threshold() so it properly handles signed pixel types.
parent
fe69a6e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
thresholding.h
dlib/image_transforms/thresholding.h
+2
-3
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