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
aa6919d3
Commit
aa6919d3
authored
Feb 11, 2014
by
Davis King
Browse files
Made --stats print out info on unlabeled boxes.
parent
a20f401e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
tools/imglab/src/main.cpp
tools/imglab/src/main.cpp
+12
-12
No files found.
tools/imglab/src/main.cpp
View file @
aa6919d3
...
@@ -192,19 +192,19 @@ void print_all_label_stats (
...
@@ -192,19 +192,19 @@ void print_all_label_stats (
for
(
std
::
set
<
std
::
string
>::
iterator
i
=
labels
.
begin
();
i
!=
labels
.
end
();
++
i
)
for
(
std
::
set
<
std
::
string
>::
iterator
i
=
labels
.
begin
();
i
!=
labels
.
end
();
++
i
)
{
{
if
(
i
->
size
()
!=
0
)
if
(
i
->
size
()
==
0
)
{
cout
<<
"Unlabeled Boxes:"
<<
endl
;
else
cout
<<
"Label: "
<<
*
i
<<
endl
;
cout
<<
"Label: "
<<
*
i
<<
endl
;
cout
<<
" number of images: "
<<
image_hits
[
*
i
]
<<
endl
;
cout
<<
" number of images: "
<<
image_hits
[
*
i
]
<<
endl
;
cout
<<
" number of occurrences: "
<<
area_stats
[
*
i
].
current_n
()
<<
endl
;
cout
<<
" number of occurrences: "
<<
area_stats
[
*
i
].
current_n
()
<<
endl
;
cout
<<
" min box area: "
<<
area_stats
[
*
i
].
min
()
<<
endl
;
cout
<<
" min box area: "
<<
area_stats
[
*
i
].
min
()
<<
endl
;
cout
<<
" max box area: "
<<
area_stats
[
*
i
].
max
()
<<
endl
;
cout
<<
" max box area: "
<<
area_stats
[
*
i
].
max
()
<<
endl
;
cout
<<
" mean box area: "
<<
area_stats
[
*
i
].
mean
()
<<
endl
;
cout
<<
" mean box area: "
<<
area_stats
[
*
i
].
mean
()
<<
endl
;
cout
<<
" stddev box area: "
<<
area_stats
[
*
i
].
stddev
()
<<
endl
;
cout
<<
" stddev box area: "
<<
area_stats
[
*
i
].
stddev
()
<<
endl
;
cout
<<
" mean width/height ratio: "
<<
aspect_ratio
[
*
i
].
mean
()
<<
endl
;
cout
<<
" mean width/height ratio: "
<<
aspect_ratio
[
*
i
].
mean
()
<<
endl
;
cout
<<
" stddev width/height ratio: "
<<
aspect_ratio
[
*
i
].
stddev
()
<<
endl
;
cout
<<
" stddev width/height ratio: "
<<
aspect_ratio
[
*
i
].
stddev
()
<<
endl
;
cout
<<
endl
;
cout
<<
endl
;
}
}
}
}
}
...
...
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