hsosik / ifcb-analysis

custom resolver
Other
30 stars 18 forks source link

in blob_Hausdorff_symmetry, some multi-blob ROIs are centered on the wrong blob #3

Closed joefutrelle closed 8 years ago

joefutrelle commented 8 years ago

blob_Hausdorff_symmetry labels the rotated blob image, then centers around the blob with the greatest area before performing the geometric transformations used to compute modified Hausdorff self-distance.

In the rotated blob image, the major axis of the blob with the greatest area (the "largest" blob) is horizontal. Unfortunately, in the case where there is a tie or near-tie between the areas of the largest blobs, the largest blob in the rotated image may not be the same blob as the largest blob in the non-rotated image. The reflections and rotations in the Hausdorff symmetry calculation are then performed around the wrong centroid, producing incorrect results.