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
Here is the macro that retrieves ThresholdMin:
there is a topic on the forum with more details about that:
http://forums.mediacy.com/discussion/comment/1232/#Comment_1232
Regards,
Yuri