Threashold values
Hi guys,
how can I get the 2 threashold values (low & high) from the following code?
this is an interactive procedure, the values must be collected after the OK button is pressed
Thank you
Maurizio
how can I get the 2 threashold values (low & high) from the following code?
this is an interactive procedure, the values must be collected after the OK button is pressed
Thank you
Maurizio
'---------------------------------------------------------------------- Dim dLow As Double = 0 Dim dHigh As Double = 20 '---------------------------------------------------------------------- With Measure.ThresholdToolCommands.Thresholds(Nothing) .AllowOverlap = False .Interpretation = MediaCy.Addins.ThresholdTool.eInterpretation.Mono .Classes = New System.Collections.Generic.List(Of SegmentationClass) .Classes.Add(New SegmentationClass("Sem2",System.Drawing.Color.Blue,New Double(){dLow,dHigh})) .Prompt = "Please adjust threshold." .Interactive = True .Run(ImOriginale) End With '---------------------------------------------------------------------- With Measure.ThresholdTool.Gadgets.Histogram(Nothing) .CheckState = MediaCy.IQL.Application.McCommand.mcCheckState.Unchecked .Run() End With
0
Answers
-
Hi Maurizio,
Here is the macro that retrieves ThresholdMin:Public Sub PrintCurrentThresholds Debug.Print Measure.ThresholdToolCommands.Thresholds(Nothing).Classes(0).Channels(0).ThresholdMin End Sub
there is a topic on the forum with more details about that:
http://forums.mediacy.com/discussion/comment/1232/#Comment_1232
Regards,
Yuri0
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