Trying to use Aoi.GetFeatureBoundingBox() function. How do I acquire the bounding box object?
I need the LT, RB coordinates.
0
Best Answers
-
Here is the code for accessing the bounds of the first ROI feature.
Sub PrintBoundingBox Dim l,r,t,b As Single ThisApplication.ActiveImage.Aoi.GetFeatureBoundingBox(0,l,t,r,b) Debug.Print(l) End Sub
0 -
rdbunn said:The question is, is there a method GetBoundingBox function for use with McMMSubFeature? You can acquire the BB width and height and centroid X/Y. I did not see a BB feature in eMeasures as in GetBounding Box. I have used the centroid tool but this biases the overlay depending on symmetry of the detected area.0
Answers
When using an ROI, this will return the ROI coordinates. I need the BoundingBox coordinates of the of the Count/Size detected region. The reason I was seening index out of range was that the ROI was deleted at the time I thought I was grabbing the coordinates of the Count/Size detected region. I am looking for the latter and not the former.