Commit aa6919d3 authored by Davis King's avatar Davis King

Made --stats print out info on unlabeled boxes.

parent a20f401e
...@@ -192,8 +192,9 @@ void print_all_label_stats ( ...@@ -192,8 +192,9 @@ 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;
...@@ -205,7 +206,6 @@ void print_all_label_stats ( ...@@ -205,7 +206,6 @@ void print_all_label_stats (
cout << " stddev width/height ratio: " << aspect_ratio[*i].stddev() << endl; cout << " stddev width/height ratio: " << aspect_ratio[*i].stddev() << endl;
cout << endl; cout << endl;
} }
}
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment