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

AVL.ConvertSpatialMapToMatrixMaps

Splits a spatial map into two matrices of source coordinates.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ConvertSpatialMapToMatrixMaps
(
	AvlNet.SpatialMap inSpatialMap,
	bool inRoundingOpenCV,
	AvlNet.Matrix outMatrixX,
	AvlNet.Matrix outMatrixY
)

Parameters

Name Type Range Default Description
inSpatialMapAvlNet.SpatialMap
inRoundingOpenCVboolUse same interpolation convention as cvRemap.
outMatrixXAvlNet.MatrixMap of real X coordinates.
outMatrixYAvlNet.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