CreateRectificationMap_WorldUnits


Computes a spatial map for transforming distorted images to rectified images defined in world coordinate plane. Defines the output geometry in world units.

Applications:Specification of output geometry in world units is especially useful in image stitching.

Syntax

C++
C#
Python
 
def CreateRectificationMap_WorldUnits(
	inImageFormat: ImageFormat,
	inTransform: RectificationTransform,
	outRectificationMap: RectificationMap,
	/,
	*,
	inLeftBound: float = 0,
	inRightBound: float = 0,
	inTopBound: float = 0,
	inBottomBound: float = 0,
	inWorldScale: float | None = None,
	inInvertedWorldY: bool = False,
	inInterpolationMethod: InterpolationMethod = InterpolationMethod.Bilinear
)
-> None

Parameters

Name Type Range Default Description
Input value inImageFormat ImageFormat Input image format.
Input value inLeftBound float 0 World X coordinate of left side of generated output image.
Input value inRightBound float 0 World X coordinate of right side of generated output image.
Input value inTopBound float 0 World Y coordinate of top side of generated output image.
Input value inBottomBound float 0 World Y coordinate of bottom side of generated output image.
Input value inWorldScale float | None 0.001 - None [pix / world unit] Specifies the scale for output image. By default scale is calculated such that there will be no rescaling at the center of output image.
Input value inInvertedWorldY bool False Set to true if world coordinate system has right-handed orientation, also known as mathematical or standard. This effectively mirrors the rectified image vertically.
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.Bilinear
Input value inTransform RectificationTransform Transform's camera model is needed for undistortion of image, when not supplied the generated map will assume undistorted image on input. Transform's homography is needed for transforming to given world plane, when not supplied the generated map will only remove distortion of image.
Output value outRectificationMap RectificationMap