You are here: Start » AVL.NET » AVL.ConvertSpatialMapToMatrixMaps Method
AVL.ConvertSpatialMapToMatrixMaps Method
Splits a spatial map into two matrices of source coordinates.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void ConvertSpatialMapToMatrixMaps( AvlNet.SpatialMap inSpatialMap, bool inRoundingOpenCV, out AvlNet.Matrix outMatrixX, out AvlNet.Matrix outMatrixY )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inSpatialMap | AvlNet.SpatialMap | ||||
inRoundingOpenCV | bool | Use same interpolation convention as cvRemap. | |||
outMatrixX | AvlNet.Matrix | Map of real X coordinates. | |||
outMatrixY | AvlNet.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.