SortBlobs

SortBlobs is used to sort the blobs referenced in a Blobs data structure in relation to a fixture.

SortBlobs Overview

By computing the position of the referenced blob's center of mass (centroid) relative to the specified image fixture coordinate system, SortBlobs sorts the referenced blobs based upon one of their measurement characteristics, such as the distance along the x or y-axis, from a fixture origin or a grid, or the angle or angular distance of the blob.

Each blob in the referenced Blobs data structure is examined, and depending upon the Sort By parameter setting, the blob is identified and its position is calculated by measuring either the distance or angular relationship of the blob to a fixed location.

Once SortBlobs has sorted the referenced blobs, a new Blobs data structure and accompanying result table will be automatically inserted into the spreadsheet. The result table is sorted by how close the blob is to the chosen fixture, in descending order (the closest blob is listed first, the next closest second, and so on).

SortBlobs is an extremely helpful function in instances where there are multiple blobs and the position of each blob in relation to the other blobs needs to be determined.

See the Blobs Vision Data Access functions for details on the result table.