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
eaa0b45c
"examples/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "98ff82e52770053b890cb71f150ad62ddd66ee35"
Commit
eaa0b45c
authored
May 28, 2011
by
Davis King
Browse files
Cleaned up this example a little.
parent
a0e44acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
examples/image_ex.cpp
examples/image_ex.cpp
+3
-6
No files found.
examples/image_ex.cpp
View file @
eaa0b45c
...
@@ -50,16 +50,13 @@ int main(int argc, char** argv)
...
@@ -50,16 +50,13 @@ int main(int argc, char** argv)
// vertical gradient images.
// vertical gradient images.
array2d
<
short
>
horz_gradient
,
vert_gradient
;
array2d
<
short
>
horz_gradient
,
vert_gradient
;
array2d
<
unsigned
char
>
edge_image
;
array2d
<
unsigned
char
>
edge_image
;
sobel_edge_detector
(
img
,
horz_gradient
,
vert_gradient
);
sobel_edge_detector
(
img
,
horz_gradient
,
vert_gradient
);
// now we do the non-maximum edge suppression step so that our edges are nice and thin
// now we do the non-maximum edge suppression step so that our edges are nice and thin
suppress_non_maximum_edges
(
horz_gradient
,
vert_gradient
,
edge_image
);
suppress_non_maximum_edges
(
horz_gradient
,
vert_gradient
,
edge_image
);
// Now we would like to see what our images look like. So lets use our
// Now we would like to see what our images look like. So lets use a
// window to display them on the screen.
// window to display them on the screen. (Note that you can zoom into
// create a window to display the edge image. (Note that you can zoom into
// the window by holding CTRL and scrolling the mouse wheel)
// the window by holding CTRL and scrolling the mouse wheel)
image_window
my_window
(
edge_image
);
image_window
my_window
(
edge_image
);
...
...
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