IImage GetTransform Method Cognex VisionPro 9.20

Returns a transformation that maps points from the 'From' coordinate space to the 'To' space.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax

ITransform2D GetTransform(
	string toSpaceName,
	string fromSpaceName
)

Parameters

toSpaceName
Type: System String
The name of the coordinate space to transform the point to. The special string "." is accepted as an alias for the SelectedSpaceName of this image.
fromSpaceName
Type: System String
The name of the coordinate space to transform the point from. The special string "." is accepted as an alias for the SelectedSpaceName of this image.

Return Value

Type: ITransform2D

The transformation that maps a point from the fromSpaceName to the toSpaceName.

Exceptions

ExceptionCondition
ImageExceptionThe coordinate space tree is missing.
See Also