CogPixelMap Execute Method Cognex VisionPro
Perform pixel mapping on the supplied image.

Namespace: Cognex.VisionPro.PixelMap
Assembly: Cognex.VisionPro.PixelMap (in Cognex.VisionPro.PixelMap.dll) Version: 65.1.0.0
Syntax

public ICogImage Execute(
	ICogImage image,
	ICogRegion region
)

Parameters

image
Type: Cognex.VisionPro ICogImage
The image to be pixel mapped.
region
Type: Cognex.VisionPro ICogRegion
An optional region. May be null. If supplied, this region is used to limit the amount of processing performed on the input image. The region mode is always PixelAlignedBoundingBox. If no inputRegion is supplied, the entire input image is processed.

Return Value

Type: ICogImage
The mapped image. This image will have the grey value pixel depth specified in the OutputDepth property.
Exceptions

ExceptionCondition
CogImageBadTypeException If the supplied input image argument is not a CogImage8Grey or CogImage16Grey.
CogOperatorNoInputImageException If the supplied input image argument is null.
ArgumentException If the supplied input image depth is smaller than the output image depth.
ArgumentException If MappingMode is CogPixelMapMappingModeConstants::Quantize and NumQuantizeBins is larger than the max. number of output grey values.
ArgumentException If MappingMode is CogPixelMapMappingModeConstants::Interpolate and the reference points list is invalid.
CogSecurityViolationException If licensing for this operator cannot be confirmed.
See Also