CogPMAlignResult MapPointRunTimeImageFromTrainTimeImage Method Cognex VisionPro 9.20
Maps a point in the selected space of the training image to a point in the selected space of the run-time image using the PatFlex transform held in CogPMAlignResult

Namespace: Cognex.VisionPro.PMAlign
Assembly: Cognex.VisionPro.PMAlign (in Cognex.VisionPro.PMAlign.dll) Version: 80.0.0.0
Syntax

public void MapPointRunTimeImageFromTrainTimeImage(
	double trainImgPointX,
	double trainImgPointY,
	out double runImgPointX,
	out double runImgPointY
)

Parameters

trainImgPointX
Type: System Double
The X-coordinate of the point to map from the selected space of the train image.
trainImgPointY
Type: System Double
The Y-coordinate of the point to map from the selected space of the train image.
runImgPointX
Type: System Double 
The resulting X-coordinate of the mapped point in the selected space of the run-time image.
runImgPointY
Type: System Double 
The resulting Y-coordinate of the mapped point in the selected space of the run-time image.
Exceptions

ExceptionCondition
CogPMAlignInvalidAlgorithmForPatFlexXFormExceptionIf PatFlex is not used as your Train Algorithm and Run Algorithm.
See Also