"tests/python/vscode:/vscode.git/clone" did not exist on "e9162491e51769cacb550277b3c360371e8307fa"
Commit 678728dc authored by Davis King's avatar Davis King
Browse files

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

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