Create a thresholded image using a transparency approach.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static Image StaticTransparent( Image img, StaticThresholding comparison, double[] thresholds, double[] values )
Parameters
- img
- Type: Stemmer.CvbImage
Input image - comparison
- Type: Stemmer.Cvb.FoundationStaticThresholding
Thresholding condition. - thresholds
- Type: SystemDouble
Thresholds to apply (one per plane). - values
- Type: SystemDouble
Value to set for pixels, that violate the thresholding condition (one per plane required).
Return Value
Type: ImageThe thresholded image.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If img, thresholds or values is null. |
| ObjectDisposedException | If img has been disposed. |
| ArgumentException | If thresholds or values have too few elements. |
Remarks
See Also