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
3432108e
Commit
3432108e
authored
Mar 18, 2012
by
Davis King
Browse files
Added an example use of heatmap()
parent
6dbb0d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
examples/image_ex.cpp
examples/image_ex.cpp
+6
-1
No files found.
examples/image_ex.cpp
View file @
3432108e
...
...
@@ -63,12 +63,17 @@ int main(int argc, char** argv)
// the window by holding CTRL and scrolling the mouse wheel)
image_window
my_window
(
edge_image
);
// We can also easily display the edge_image as a heatmap like so.
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
image_window
my_window2
(
img
);
// wait until the user closes
bo
th windows before we let the program
// wait until the user closes th
e
windows before we let the program
// terminate.
my_window
.
wait_until_closed
();
win_hot
.
wait_until_closed
();
my_window2
.
wait_until_closed
();
}
catch
(
exception
&
e
)
...
...
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