You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms Maps » FIL.ConvertSpatialMapToMatrixMaps

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
inSpatialMapFilNet.SpatialMap
inRoundingOpenCVboolUse same interpolation convention as cvRemap.
outMatrixXFilNet.MatrixMap of real X coordinates.
outMatrixYFilNet.MatrixMap 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.

See also