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
ddaa9133
".github/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "6423c660d39d429ce12d3599fd5ca276055c3f08"
Commit
ddaa9133
authored
Jun 19, 2011
by
Davis King
Browse files
Minor improvements.
parent
24082349
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tools/imglab/src/metadata_editor.cpp
tools/imglab/src/metadata_editor.cpp
+11
-3
No files found.
tools/imglab/src/metadata_editor.cpp
View file @
ddaa9133
...
...
@@ -63,7 +63,7 @@ metadata_editor(
// set the size of this window.
on_window_resized
();
load_image_and_set_size
(
image_pos
);
load_image_and_set_size
(
0
);
on_window_resized
();
if
(
image_pos
<
lb_images
.
size
()
)
lb_images
.
select
(
image_pos
);
...
...
@@ -234,9 +234,14 @@ select_image(
lb_images
.
select
(
idx
);
image_pos
=
idx
;
load_image
(
idx
);
}
else
{
display
.
clear_overlay
();
array2d
<
unsigned
char
>
empty_img
;
display
.
set_image
(
empty_img
);
}
}
// ----------------------------------------------------------------------------------------
...
...
@@ -246,7 +251,6 @@ on_lb_images_clicked(
unsigned
long
idx
)
{
image_pos
=
idx
;
load_image
(
idx
);
}
...
...
@@ -276,6 +280,8 @@ load_image(
if
(
idx
>=
metadata
.
images
.
size
())
return
;
image_pos
=
idx
;
array2d
<
rgb_pixel
>
img
;
display
.
clear_overlay
();
try
...
...
@@ -302,6 +308,8 @@ load_image_and_set_size(
if
(
idx
>=
metadata
.
images
.
size
())
return
;
image_pos
=
idx
;
array2d
<
rgb_pixel
>
img
;
display
.
clear_overlay
();
try
...
...
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