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
-
I had tried this earlier but I am receiving a "Selected index out of range" at run time and I have a count/size detected region on the image and only one.0
-
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.
0 -
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
-
What does RgnBoxXY return?0
-
For review, I would like to draw a line across the detected area that represents either the BB width or height constrained to the axis of the BB. I may want to position the line at the centroid of the detected area as well.0
-
Will take a look. Thanks!0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions