You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms Maps » FIL.ConvertSpatialMapToMatrixMaps
Splits a spatial map into two matrices of source coordinates.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void ConvertSpatialMapToMatrixMaps ( FilNet.SpatialMap inSpatialMap, bool inRoundingOpenCV, FilNet.Matrix outMatrixX, FilNet.Matrix outMatrixY )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inSpatialMap | FilNet.SpatialMap | |||
![]() | inRoundingOpenCV | bool | Use same interpolation convention as cvRemap. | ||
![]() | outMatrixX | FilNet.Matrix | Map of real X coordinates. | ||
![]() | outMatrixY | FilNet.Matrix | Map of real Y coordinates. |
Description
This operation allows to inspect the accessed coordinates in the image being remapped.
If the input SpatialMap uses the nearest neighbor interpolation, it is not possible to recover the exact source coordinates. In that case the pixel center, or the top left corner when using inRoundingOpenCV set to True, is taken as an approximation.
Remarks
For pixels in the input spatial map which are not well defined, an artificial pair of invalid coordinates, (-10, -10), is returned.