CogPMAlignResults GetTrainArea Method Cognex VisionPro
Returns a copy of the train-pixel aligned rectangle enclosing the original train pattern.

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

public CogRectangle GetTrainArea()

Return Value

Type: CogRectangle

The returned rectangle.

Remarks

Returns a copy of the train-pixel aligned rectangle enclosing the original train pattern.

Returns the smallest training image pixel-aligned CogRectangle that encloses the original pattern. You can use this result in conjunction with UnwarpedInputImage.

The returned rectangle is in '@' space. Note that '@' space space in the unwarped image is arranged to be identical to the '@' space of the training image. This rectangle will sit over the original train pattern area in the unwarped image. This may be different than the original train region (if one was provided) as it is pixel aligned.

See Also