ThresholdStaticTransparent Method (Image, StaticThresholding, 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
)

Parameters

img
Type: Stemmer.CvbImage
Input image
comparison
Type: Stemmer.Cvb.FoundationStaticThresholding
Thresholding condition.
thresholds
Type: SystemDouble
Thresholds to apply (one per plane).

Return Value

Type: Image
The thresholded image.
Exceptions

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

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

Reference