ThresholdStatic Method (Image, Image, StaticThresholding)

CVB.Net Documentation
This function performs thresholding of an input image with pixel-by-pixel thresholds stored in the pixels of a thresholds image.

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,
	Image thresholds,
	StaticThresholding comparison
)

Parameters

img
Type: Stemmer.CvbImage
Image to be thresholded.
thresholds
Type: Stemmer.CvbImage
Image containing the threshold values for the pixels of the input img.
comparison
Type: Stemmer.Cvb.FoundationStaticThresholding
Comparison to apply

Return Value

Type: Image
The thresholded image.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img or thresholds is null.
ObjectDisposedExceptionIf the input img or thresholds has already been disposed.
Remarks

Both images should be identical in size. However, if they are not, the smallest common rectangle (located at the top left pixel) of both images will be the size of the result image. Both input images should have identical dimensions (either 1 or 3 planes per image) and identical data types.
See Also

Reference