Returns a transformation that maps points from the 'From' coordinate space to the 'To' space.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.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: ITransform2DThe transformation that maps a point from the fromSpaceName to the toSpaceName.
Implements
IImage GetTransform(String, String)Exceptions
| Exception | Condition |
|---|---|
| ImageException | The coordinate space tree is missing. |
| ImageException | This image has no CoordinateSpaceTree. |
See Also