Computes a set of reference points using the ComputeMapParams properties, InputImage and Region and replaces the reference points in the list if necessary.
Namespace: Cognex.VisionPro.PixelMapAssembly: Cognex.VisionPro.PixelMap (in Cognex.VisionPro.PixelMap.dll) Version: 91.0.0.0
Syntax
Parameters
- image
- Type: Cognex.VisionPro ICogImage
The input image to be processed (CogImage8Grey, CogImage16Grey or CogImage16Range)
- 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:4 Reference points.
Exceptions
| Exception | Condition |
|---|---|
| CogImageBadTypeException | If the supplied input image argument is not a CogImage8Grey, CogImage16Grey or CogImage16Range. |
| CogOperatorNoInputImageException | If the supplied input image argument is null. |
| ArgumentException | If the supplied input image depth is smaller than the output image depth. |
| ArgumentNullException | |
| ArgumentException | if region is outside image. |
| ArgumentException | if any of the ComputeMapParams do not apply or outside boundaries of the range image in or out. |
See Also