CreatePerspectiveMap_Path


Creates a perspective transform map from planes defined by paths.

Applications:Data preprocessing for fast perspective correction. The result is used by RemapImage.

Syntax

C++
C#
Python
 
def CreatePerspectiveMap_Path(
	inImageFormat: ImageFormat,
	inImagePath: Path,
	outSpatialMap: SpatialMap,
	outTransformMatrix: Matrix,
	/,
	*,
	inRoi: Region | None = None,
	inTargetPath: Path | None = None,
	inNewSize: Size | None = None,
	inInterpolationMethod: InterpolationMethod = InterpolationMethod.NearestNeighbour
)
-> None

Parameters

Name Type Default Description
Input value inImageFormat ImageFormat
Input value inRoi Region | None None Range of pixels to be processed
Input value inImagePath Path Plane defined by a closed path made of 4 points
Input value inTargetPath Path | None None Target plane. If NIL then image corners are used starting from (0,0) (Width, 0) (Width, Height), (0, Height)
Input value inNewSize Size | None None New image size after remapping
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.NearestNeighbour Interpolation method used in extraction of image pixel values
Output value outSpatialMap SpatialMap Calculated spatial map
Output value outTransformMatrix Matrix Used transform matrix