ICogCalibCheckerboardWarpParams GetInputPixelFromOutputPixelTransform Method Cognex VisionPro 9.5
Returns a 2-D warping transform that maps points from pixel space of an output image - one created by calling Execute with the current params - into pixel space of the given input image. Returns Nothing if this object is uncalibrated or in linear mode.

Namespace: Cognex.VisionPro.CalibFix
Assembly: Cognex.VisionPro.CalibFix (in Cognex.VisionPro.CalibFix.dll) Version: 69.0.0.0
Syntax

ICogTransform2D GetInputPixelFromOutputPixelTransform(
	ICogImage inputImage
)

Parameters

inputImage
Type: Cognex.VisionPro ICogImage

The input image from which the transformation is computed.

Return Value

Type: ICogTransform2D

The returned transformation.

Exceptions

ExceptionCondition
ArgumentException

The transform between the selected space of inputImage and its pixels differs by more than a whole-pixel shift from the similar transform contained in the calibration image.

Remarks

Returns a 2D transformation that maps points from the pixel space of the warped output image produced by running this tool to the pixel space of an input image that you supply.

Keep in mind that when the Checkerboard Calibration tool produces a warped image at run time, the newly warped image does not contain a transformation that maps between the warped and unwarped pixels. This function is the only way of obtaining this transformation.

This function returns Nothing if Calibrated is false or if ComputationMode is Linear.

See Also