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 | |
|---|---|---|---|---|
![]() |
inImageFormat | ImageFormat | ||
![]() |
inRoi | Region | None | None | Range of pixels to be processed |
![]() |
inImagePath | Path | Plane defined by a closed path made of 4 points | |
![]() |
inTargetPath | Path | None | None | Target plane. If NIL then image corners are used starting from (0,0) (Width, 0) (Width, Height), (0, Height) |
![]() |
inNewSize | Size | None | None | New image size after remapping |
![]() |
inInterpolationMethod | InterpolationMethod | InterpolationMethod.NearestNeighbour | Interpolation method used in extraction of image pixel values |
![]() |
outSpatialMap | SpatialMap | Calculated spatial map | |
![]() |
outTransformMatrix | Matrix | Used transform matrix |


