ThresholdStaticTransparent Method (Image, StaticThresholding, Double, Double)

CVB.Net Documentation
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: Image
The thresholded image.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf img, thresholds or values is null.
ObjectDisposedExceptionIf img has been disposed.
ArgumentExceptionIf thresholds or values have too few elements.
Remarks

In the result image every pixel, that violates the comparison to its threshold, will be assigned the specified value. All others will be assigned the same value, they had in the input image.
See Also

Reference