remap

Description

Applies a generic geometrical transformation to an image.

Signature

cv2.remap(src, map1, map2, interpolation[, dst[, borderMode[, borderValue]]]) → dst

Parameters

Explanation

The function remap transforms the source image using the specified map: $$\texttt{dst}(x,y)=\texttt{src}(map_x(x,y),map_y(x,y))$$ where values of pixels with non-integer coordinates are computed using one of available interpolation methods. \(map_x\) and \(map_y\) can be encoded as separate floating-point maps in map1 and map2 respectively, or interleaved floating-point maps of \((x,y)\) in map1, or fixed-point maps created by using convertMaps.

Notes


References

Created with OpenCV 4.4.0