Home Image-Pro Automation (Macros, Apps, Reports)

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
    '----------------------------------------------------------------------
    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

Answers

Sign In or Register to comment.