Click or drag to resize
Accord.NET (logo)

ImageWarpWarpMap Property

Map used for warping images.

Namespace:  Accord.Imaging.Filters
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
public IntPoint[,] WarpMap { get; set; }
Request Example View Source

Property Value

Type: IntPoint

The property sets displacement map used for warping images. The map sets offsets of pixels in source image, which are used to set values in destination image. In other words, each pixel in destination image is set to the same value as pixel in source image with corresponding offset (coordinates of pixel in source image are calculated as sum of destination coordinate and corresponding value from warp map).

Note Note
The map array is accessed using [y, x] indexing, i.e. first dimension in the map array corresponds to Y axis of image.

Note Note
If the map is smaller or bigger than the image to process, then only minimum overlapping area of the image is processed. This allows to prepare single big map and reuse it for a set of images for creating similar effects.

See Also