1 | initial version |
I think you may have a typo, the function signature, help(cv.cuda.remap)
shown below, is the same as the one in your question
remap(...)
remap(src, xmap, ymap, interpolation[, dst[, borderMode[, borderValue[, stream]]]]) -> dst
. @brief Applies a generic geometrical transformation to an image.
.
. @param src Source image.
. @param dst Destination image with the size the same as xmap and the type the same as src .
. @param xmap X values. Only CV_32FC1 type is supported.
. @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.
. @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.
. @param stream Stream for the asynchronous version.
.
. The function transforms the source image using the specified map:
.
. \f[\texttt{dst} (x,y) = \texttt{src} (xmap(x,y), ymap(x,y))\f]
.
. Values of pixels with non-integer coordinates are computed using the bilinear interpolation.
.
. @sa remap
however you are passing a
as the second parameter and an invalid borderMode cv.COLOR_RGB2GRAY==7
?
cv.cuda.remap(raw,a, mapx, mapy, cv.INTER_CUBIC, borderMode=cv.COLOR_RGB2GRAY)
2 | No.2 Revision |
I think you may have a typo, the function signature, help(cv.cuda.remap)
shown below, is the same as the one in your question
remap(...)
remap(src, xmap, ymap, interpolation[, dst[, borderMode[, borderValue[, stream]]]]) -> dst
. @brief Applies a generic geometrical transformation to an image.
.
. @param src Source image.
. @param dst Destination image with the size the same as xmap and the type the same as src .
. @param xmap X values. Only CV_32FC1 type is supported.
. @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.
. @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.
. @param stream Stream for the asynchronous version.
.
. The function transforms the source image using the specified map:
.
. \f[\texttt{dst} (x,y) = \texttt{src} (xmap(x,y), ymap(x,y))\f]
.
. Values of pixels with non-integer coordinates are computed using the bilinear interpolation.
.
. @sa remap
however in the full code sample you are passing a
as the second parameter and an invalid borderMode cv.COLOR_RGB2GRAY==7
?
cv.cuda.remap(raw,a, mapx, mapy, cv.INTER_CUBIC, borderMode=cv.COLOR_RGB2GRAY)