Commit 678728dc authored by Davis King's avatar Davis King

Made imglab --cluster ignore ignored boxes when doing all aspects of clustering.

parent bdd5016d
......@@ -96,7 +96,7 @@ double mean_aspect_ratio (
for (unsigned long j = 0; j < data.images[i].boxes.size(); ++j)
{
rectangle rect = data.images[i].boxes[j].rect;
if (rect.area() == 0)
if (rect.area() == 0 || data.images[i].boxes[j].ignore)
continue;
sum += rect.width()/(double)rect.height();
++cnt;
......
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