Map used for warping images.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: (


public IntPoint[,] WarpMap { get; set; }


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:The map array is accessed using [y, x] indexing, i.e. first dimension in the map array corresponds to Y axis of image.

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