CogCoordinateSpaceTree GetTransform Method Cognex VisionPro
Return a composed transform which can map points from the 'From' coordinate space to the 'To' space.

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

public ICogTransform2D GetTransform(
	string toSpaceName,
	string fromSpaceName
)

Parameters

toSpaceName
Type: System String

A valid nonqualified or fully-qualified space name that indicates the coordinate space to which to map points.

fromSpaceName
Type: System String

A valid nonqualified or fully-qualified space name. This name indicates the coordinate space from which to map points into the toSpaceName.

Return Value

Type: ICogTransform2D

The resulting CogTransform2D.

Exceptions

ExceptionCondition
CogSpaceTreeInvalidNameSyntaxException

toSpaceName or fromSpaceName value is not a legal space name.

CogSpaceTreeNotUniqueException

toSpaceName or fromSpaceName is a nonqualified space name and more than one instance of it exists in this tree.

CogSpaceTreeNotInTreeException

The space name does not exist in this tree.

Remarks

Returns a composed CogTransform2D that maps points from one coordinate space to another.

See Also