CogImage16Grey GetTransform Method Cognex VisionPro
Returns a transform that maps points from the 'From' coordinate 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.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public virtual ICogTransform2D 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: ICogTransform2D

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

Implements

ICogImage GetTransform(String, String)
Exceptions

ExceptionCondition
CogImageNoTreeException

The coordinate space tree is missing.

Remarks

Returns a transform that maps points from the 'From' coordinate space to the 'To' space. The special string "." is accepted as an alias for the SelectedSpaceName of this image.

See Also