CogIPOneImageQuantize Execute2 Method Cognex VisionPro 9.10
Perform the quantize operation using the input image and region to produce the output image. The threshold grey-level values for each division are also returned.

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 79.0.0.0
Syntax

public ICogImage Execute2(
	ICogImage inputImage,
	CogRegionModeConstants regionMode,
	ICogRegion region,
	out int[] thresholds
)

Parameters

inputImage
Type: Cognex.VisionPro ICogImage

The image to which the operator is applied.

regionMode
Type: Cognex.VisionPro CogRegionModeConstants

Specifies how the region should be applied to the input image.

region
Type: Cognex.VisionPro ICogRegion

A region that, together with the regionMode, specifies which part of the image the operator applies to.

thresholds
Type:  System Int32  

The threshold grey-level values for each division. The number of elements in thresholds is one less than the number of grey levels.

Return Value

Type: ICogImage

The image that results from applying this operator to the inputImage

Exceptions

ExceptionCondition
CogOperatorNoInputImageException

inputImage is NULL.

CogImageNoPixelsException

inputImage is not allocated.

CogOperatorInvalidRegionException

regionMode is cogRegionModeAffineTransform but region is not of type CogRectangleAffine.

ArgumentException

regionMode is not cogRegionModeAffineTransform or cogRegionModePixelAlignedBoundingBox.

Remarks

Perform the quantize operation using the input image and region to produce the output image. thresholds contains the threshold grey-level values for each division.

See Also