public FlowControlQueue(
    int lowerBound, 
    int upperBound,
    ThresholdMethod underThreshold,
    ThresholdMethod overThreshold
    )
 {
    _lowerBound = lowerBound;
    _upperBound = upperBound;
    _underThreshold = underThreshold;
    _overThreshold = overThreshold;
 }
Beispiel #2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox here = (ComboBox)sender;

            switch (here.SelectedIndex)
            {
            case 0:
                selectMethod = ThresholdMethod.ABSOLUTE;
                break;

            case 1:
                selectMethod = ThresholdMethod.OTSU;
                break;
            }
        }
 private void OnAsyncCallEnd(IAsyncResult res)
 {
    ThresholdMethod method = (ThresholdMethod)res.AsyncState;
    method.EndInvoke(res);
 }
Beispiel #4
0
 public static extern IntPtr imaqAutoThreshold2(IntPtr dest, IntPtr source, int numClasses, ThresholdMethod method, IntPtr mask);