From 10c7dc8693fa18aa18e72f3b3cfed5774b3e0a87 Mon Sep 17 00:00:00 2001 From: chacha21 Date: Fri, 7 Jun 2024 12:32:07 +0200 Subject: [PATCH] Better doc for WARP_RELATIVE_MAP --- modules/cudawarping/include/opencv2/cudawarping.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/cudawarping/include/opencv2/cudawarping.hpp b/modules/cudawarping/include/opencv2/cudawarping.hpp index 45cca1ccf8..9f5cb07bd0 100644 --- a/modules/cudawarping/include/opencv2/cudawarping.hpp +++ b/modules/cudawarping/include/opencv2/cudawarping.hpp @@ -70,6 +70,8 @@ namespace cv { namespace cuda { @param ymap Y values. Only CV_32FC1 type is supported. @param interpolation Interpolation method (see resize ). INTER_NEAREST , INTER_LINEAR and INTER_CUBIC are supported for now. +The extra flag WARP_RELATIVE_MAP can be ORed to the interpolation method +(e.g. INTER_LINEAR | WARP_RELATIVE_MAP) @param borderMode Pixel extrapolation method (see borderInterpolate ). BORDER_REFLECT101 , BORDER_REPLICATE , BORDER_CONSTANT , BORDER_REFLECT and BORDER_WRAP are supported for now. @param borderValue Value used in case of a constant border. By default, it is 0. @@ -79,6 +81,10 @@ The function transforms the source image using the specified map: \f[\texttt{dst} (x,y) = \texttt{src} (xmap(x,y), ymap(x,y))\f] +with the WARP_RELATIVE_MAP flag : + +\f[\texttt{dst} (x,y) = \texttt{src} (x+xmap(x,y),y+ymap(x,y))\f] + Values of pixels with non-integer coordinates are computed using the bilinear interpolation. @sa remap