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
Input value inImage Image Input image
Input value inRectificationMap RectificationMap The spatial map with associated data for world coordinates calculation on rectified image. Designed to be set with calibration GUI.
Output value outImage Image Remapped image.
Output value 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.
Output value outWorldOrigin Point2D | None None Position of world origin on the rectified image.
Output value outWorldScale float [pix / world unit] World scale of the rectified image.
Output value outWorldScaleInv float [world unit / pix] Inverse of outWorldScale. Connects directly to inResolution input of filters such as PointToPointDistance.