CogImage16Range GetTransform Method Cognex VisionPro 9.7
Returns a transform that maps two dimensional points from the 'From' space to the 'To' space. The special string "." is accepted as an alias for the SelectedSpaceName of this image.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 73.0.0.0
Syntax

public virtual ICogTransform2D GetTransform(
	string ToSpaceName,
	string FromSpaceName
)

Parameters

ToSpaceName
Type: System String
The name of the two dimensional 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 two dimensional coordinate space to transform the point from. The special string "." is accepted as an alias for the SelectedSpaceName of this image.

Return Value

Type: ICogTransform2D

Implements

ICogImage GetTransform(String, String)
Exceptions

ExceptionCondition
ArgumentNullException If ToSpaceName is null.
ArgumentNullException If FromSpaceName is null.
CogImageNoTreeException If CoordinateSpaceTree is null.
CogSpaceTreeNameNotInTreeException If either space name is not found in the
See Also