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
5940c716
Commit
5940c716
authored
Sep 18, 2016
by
Davis King
Browse files
Fixed a bug in --cluster where it would output xml files with empty entries
if the input xml file contained unannotated images.
parent
863fa384
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/imglab/src/cluster.cpp
tools/imglab/src/cluster.cpp
+2
-2
No files found.
tools/imglab/src/cluster.cpp
View file @
5940c716
...
@@ -179,10 +179,10 @@ int cluster_dataset(
...
@@ -179,10 +179,10 @@ int cluster_dataset(
unsigned
long
idx
=
0
;
unsigned
long
idx
=
0
;
for
(
unsigned
long
i
=
0
;
i
<
data
.
images
.
size
();
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
data
.
images
.
size
();
++
i
)
{
{
if
(
data
.
images
[
i
].
boxes
.
size
()
==
0
)
continue
;
idata
[
i
].
first
=
std
::
numeric_limits
<
double
>::
infinity
();
idata
[
i
].
first
=
std
::
numeric_limits
<
double
>::
infinity
();
idata
[
i
].
second
.
filename
=
data
.
images
[
i
].
filename
;
idata
[
i
].
second
.
filename
=
data
.
images
[
i
].
filename
;
if
(
data
.
images
[
i
].
boxes
.
size
()
==
0
)
continue
;
for
(
unsigned
long
j
=
0
;
j
<
data
.
images
[
i
].
boxes
.
size
();
++
j
)
for
(
unsigned
long
j
=
0
;
j
<
data
.
images
[
i
].
boxes
.
size
();
++
j
)
{
{
idata
[
i
].
second
.
boxes
.
push_back
(
data
.
images
[
i
].
boxes
[
j
]);
idata
[
i
].
second
.
boxes
.
push_back
(
data
.
images
[
i
].
boxes
[
j
]);
...
...
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