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