Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 65.1.0.0
Parameters
- inputImage
- Type: Cognex.VisionPro ICogImage
The InputImage to analyze.
- region
- Type: Cognex.VisionPro CogRectangleAffine
A CogRectangleAffine that specifies the region to be transformed.
- outputImageMask
- Type: Cognex.VisionPro ICogImage
An optional OutputImageMask, the same size as the OutputImage.
Return Value
Type: ICogImageAn CogImage containing the results of the image transformation.
| Exception | Condition |
|---|---|
| ArgumentException | inputImage is NULL. |
| CogImageBadTypeException | inputImage does not support CogImage8Grey. |
| CogImageNoPixelsException | inputImage is not allocated. |
| CogImageClippedException | region is partly or entirely outside the image and ClipMode is Error. |
| CogIPAffineTransformZeroSizeException | The calculated output image was less than 1 pixel in either direction. |
| CogIPAffineTransformOverSizeException | The calculated output image was greater than 32767 pixels in either direction. |
| CogImageBadSelectedSpaceNameException | The selected space of inputImage is not a valid space of the inputImage's coordinate space tree. |
| CogImageBadSelectedSpaceNameException | The selected space name of inputImage is a nonqualified space name and more than one instance of it exists in the space tree of inputImage. |
| CogImageBadSelectedSpaceNameException | The selected space name of inputImage is not a legal space name |
| CogOperatorInvalidRegionException | The selected space of the region is not a valid space of inputImage. |
| CogOperatorInvalidRegionException | The selected space name of the regionis a nonqualified space name and more than one instance of it exists in the space tree of inputImage. |
| CogOperatorInvalidRegionException | The selected space name of the regionis not a legal space name. |
Transforms a portion of the input image defined by an CogRectangleAffine into a rectangular output image with a relative size determined by the ScalingX, ScalingY properties. If the region parameter is Nothing then the whole input image is transformed.