Create an output image that is the result of static thresholding.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static Image Static( Image img, double[] values, StaticThresholding comparison )
Parameters
- img
- Type: Stemmer.CvbImage
Image to apply static thresholding to. - values
- Type: SystemDouble
Threshold values - the array must contain at least one threshold per plane available in the image. - comparison
- Type: Stemmer.Cvb.FoundationStaticThresholding
Comparison method.
Return Value
Type: ImageThe thresholded image.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null or the values array is null |
ObjectDisposedException | If the input img has already been disposed |
ArgumentException | If the values array does not contain enough values |
See Also