How to get segmentation ranges?
(Originally posted by Geeda on 5/23/2006)
Hi,
I am using histogram-based HSI segmentation for my counting macro and need a way to get the thresholds set by the user. Instead of setting the ranges, as in IpSetSetRange(nChannel,FromVal,ToVal), I need a getter. Any suggestions as to how I may do this?
Thank-you in advance for your time.
Comments
-
(Originally posted by KevinR on 5/24/2006)
Use Count/Size to find the objects, then:
' Requires that Count/Size be run with whatever segmentation ranges have been chosen
' If HSI segmentation is used, the values returned will be HSI limits.
Sub GetSegmentation()
Dim Range(10) As Single
Dim i As Integer' Second param unused, 3rd is channel
ret = IpBlbGet(GETRANGE, 0, 0, Range(0)) ' Red
Debug.Print Range(0); Range(1)ret = IpBlbGet(GETRANGE, 0, 1, Range(0)) ' Green
Debug.Print Range(0); Range(1)ret = IpBlbGet(GETRANGE, 0, 2, Range(0)) ' Blue
Debug.Print Range(0); Range(1)End Sub
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