public FlowControlQueue( int lowerBound, int upperBound, ThresholdMethod underThreshold, ThresholdMethod overThreshold ) { _lowerBound = lowerBound; _upperBound = upperBound; _underThreshold = underThreshold; _overThreshold = overThreshold; }
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); }
public static extern IntPtr imaqAutoThreshold2(IntPtr dest, IntPtr source, int numClasses, ThresholdMethod method, IntPtr mask);