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
cb2aac60
Commit
cb2aac60
authored
Sep 24, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed an unneeded cast.
parent
92157160
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
edge_detector.h
dlib/image_transforms/edge_detector.h
+4
-4
No files found.
dlib/image_transforms/edge_detector.h
View file @
cb2aac60
...
...
@@ -242,28 +242,28 @@ namespace dlib
if
(
abs
(
horz
[
r
-
1
][
c
])
+
abs
(
vert
[
r
-
1
][
c
])
>
val
||
abs
(
horz
[
r
+
1
][
c
])
+
abs
(
vert
[
r
+
1
][
c
])
>
val
)
assign_pixel
(
out_img
[
r
][
c
]
,
zero
);
else
assign_pixel
(
out_img
[
r
][
c
]
,
static_cast
<
unsigned
long
>
(
val
)
);
assign_pixel
(
out_img
[
r
][
c
]
,
val
);
break
;
case
'|'
:
if
(
abs
(
horz
[
r
][
c
-
1
])
+
abs
(
vert
[
r
][
c
-
1
])
>
val
||
abs
(
horz
[
r
][
c
+
1
])
+
abs
(
vert
[
r
][
c
+
1
])
>
val
)
assign_pixel
(
out_img
[
r
][
c
]
,
zero
);
else
assign_pixel
(
out_img
[
r
][
c
]
,
static_cast
<
unsigned
long
>
(
val
)
);
assign_pixel
(
out_img
[
r
][
c
]
,
val
);
break
;
case
'/'
:
if
(
abs
(
horz
[
r
-
1
][
c
-
1
])
+
abs
(
vert
[
r
-
1
][
c
-
1
])
>
val
||
abs
(
horz
[
r
+
1
][
c
+
1
])
+
abs
(
vert
[
r
+
1
][
c
+
1
])
>
val
)
assign_pixel
(
out_img
[
r
][
c
]
,
zero
);
else
assign_pixel
(
out_img
[
r
][
c
]
,
static_cast
<
unsigned
long
>
(
val
)
);
assign_pixel
(
out_img
[
r
][
c
]
,
val
);
break
;
case
'\\'
:
if
(
abs
(
horz
[
r
+
1
][
c
-
1
])
+
abs
(
vert
[
r
+
1
][
c
-
1
])
>
val
||
abs
(
horz
[
r
-
1
][
c
+
1
])
+
abs
(
vert
[
r
-
1
][
c
+
1
])
>
val
)
assign_pixel
(
out_img
[
r
][
c
]
,
zero
);
else
assign_pixel
(
out_img
[
r
][
c
]
,
static_cast
<
unsigned
long
>
(
val
)
);
assign_pixel
(
out_img
[
r
][
c
]
,
val
);
break
;
}
...
...
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