CogPMRedLineResult GetPose Method Cognex VisionPro 9.8
Gets the linear transform that describes the pose (position, rotation, and scale) of this result. This transform maps points from "Pattern Space" to the selected space of the runtime input image.

Namespace: Cognex.VisionPro.PMRedLine
Assembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 75.1.0.0
Syntax

public CogTransform2DLinear GetPose()

Return Value

Type: CogTransform2DLinear
The CogTransform2DLinear containing the pose.
Remarks

The position of the found pattern is reported by the TranslationX and TranslationY properties of the returned transform.

The angle of the found pattern is reported by the Rotation property of the returned transform.

The scale of the found pattern is reported by the Scaling property of the returned transform.

The returned transform maps points from "Pattern Space" (i.e. the coordinate space of the pattern, as defined by the pattern Origin) to the selected space of the runtime input image. For example, mapping the point (0, 0) through the transform returns the origin of the trained pattern in the selected space of the runtime input image.

See Also