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
64a5789f
Commit
64a5789f
authored
Jan 08, 2013
by
Davis King
Browse files
simplified code
parent
d9118a5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
examples/image_ex.cpp
examples/image_ex.cpp
+2
-3
No files found.
examples/image_ex.cpp
View file @
64a5789f
...
@@ -61,14 +61,13 @@ int main(int argc, char** argv)
...
@@ -61,14 +61,13 @@ int main(int argc, char** argv)
// Now we would like to see what our images look like. So lets use a
// Now we would like to see what our images look like. So lets use a
// window to display them on the screen. (Note that you can zoom into
// window to display them on the screen. (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
,
"Normal Edge Image"
);
// We can also easily display the edge_image as a heatmap like so.
// We can also easily display the edge_image as a heatmap like so.
image_window
win_hot
(
heatmap
(
edge_image
,
255
));
image_window
win_hot
(
heatmap
(
edge_image
,
255
));
win_hot
.
set_title
(
"heatmap version of edge image"
);
// also make a window to display the original image
// also make a window to display the original image
image_window
my_window2
(
img
);
image_window
my_window2
(
img
,
"Original Image"
);
// wait until the user closes the windows before we let the program
// wait until the user closes the windows before we let the program
// terminate.
// terminate.
...
...
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