You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms Maps » FIL.ConvertMatrixMapsToSpatialMap
Joins two matrices of coordinates to produce a SpatialMap for use in RemapImage.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void ConvertMatrixMapsToSpatialMap ( FilNet.ImageFormat inImageFormat, FilNet.Matrix inMatrixX, FilNet.Matrix inMatrixY, FilNet.InterpolationMethod inInterpolationMethod, bool inRoundingOpenCV, FilNet.SpatialMap outSpatialMap )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImageFormat | FilNet.ImageFormat | Information about dimensions, depth and pixel type of the image. | ||
![]() | inMatrixX | FilNet.Matrix | Map of real X coordinates. | ||
![]() | inMatrixY | FilNet.Matrix | Map of real Y coordinates. | ||
![]() | inInterpolationMethod | FilNet.InterpolationMethod | Bilinear | Default value: Bilinear. | |
![]() | inRoundingOpenCV | bool | Use same interpolation convention as cvRemap. | ||
![]() | outSpatialMap | FilNet.SpatialMap | Output spatial map. |
Remarks
The two source matrices contain real-valued coordinates - if inMatrixX[a, b] = x and inMatrixY[a, b] = y, then the RemapImage filter applied with this map will generate the outImage[a, b] pixel based on pixels around (x, y) in inImage.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Format of an empty image on input in ConvertMatrixMapsToSpatialMap. |
DomainError | Input matrices must have equal sizes in ConvertMatrixMapsToSpatialMap. |
Function Overrides
- ConvertMatrixMapsToSpatialMap(ImageFormat, Matrix, Matrix, InterpolationMethod, Boolean, SpatialMap, Region)
- ConvertMatrixMapsToSpatialMap(ImageFormat, Matrix, Matrix, InterpolationMethod, Boolean, SpatialMap, NullableRef<Region>)