RectifyImage
Applies a spatial map to distorted image transforming it to rectified image defined in world coordinates.
Syntax
C++
C#
Python
def RectifyImage( inImage: Image, inRectificationMap: RectificationMap, outImage: Image, /, *, outRectifiedTransform: Matrix | None = None, outWorldOrigin: Point2D | None = None ) -> ( outWorldScale: float, outWorldScaleInv: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRectificationMap | RectificationMap | The spatial map with associated data for world coordinates calculation on rectified image. Designed to be set with calibration GUI. | |
![]() |
outImage | Image | Remapped image. | |
![]() |
outRectifiedTransform | Matrix | None | None | For convenient calculation of world coordinates on rectified image. Connects directly to Image...ToWorldPlane and WorldPlane...ToImage filters. The transformation is only translation + scaling. |
![]() |
outWorldOrigin | Point2D | None | None | Position of world origin on the rectified image. |
![]() |
outWorldScale | float | [pix / world unit] World scale of the rectified image. | |
![]() |
outWorldScaleInv | float | [world unit / pix] Inverse of outWorldScale. Connects directly to inResolution input of filters such as PointToPointDistance. |


