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

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

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

Parameters

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

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