{% extends "base.html" %} {% block title %} remap {% endblock %} {% block description %}

Applies a generic geometrical transformation to an image.

{% endblock %} {% block signature %}
cv2.remap(src, map1, map2, interpolation[, dst[, borderMode[, borderValue]]]) → dst
{% endblock %} {% block parameters %} {% endblock %} {% block 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.

{% endblock %} {% block notes %}

{% endblock %} {% block references %} {% endblock %}