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.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
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: ICogTransform2DThe transform that maps a point from the fromSpaceName to the toSpaceName.
Exceptions
| Exception | Condition |
|---|---|
| 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