Perform a single image operation using the input image and region to produce the output image.
Namespace: Cognex.VisionPro.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 87.0.0.0
Syntax
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.
Return Value
Type: ICogImageThe image that results from applying this operator to the inputImage.
Implements
ICogIPOneImageOperator Execute(ICogImage, CogRegionModeConstants, ICogRegion)Exceptions
| Exception | Condition |
|---|---|
| CogOperatorInvalidRegionException | regionMode is AffineTransform but region is not of type CogRectangleAffine. |
| CogImageNoPixelsException | inputImage is not allocated. |
| CogOperatorNoInputImageException | inputImage is NULL. |
| ArgumentException | If SampleX is greater than the Width of inputImage, or If SampleY is greater than the Height of inputImage. |
Remarks
See Also