void cv::remap | ( | InputArray | src, |
OutputArray | dst, | ||
InputArray | map1, | ||
InputArray | map2, | ||
int | interpolation, | ||
int | borderMode = BORDER_CONSTANT , | ||
const Scalar & | borderValue = Scalar() | ||
) |
将一个通用的几何变换应用于图像。
重映射将运用特定的映射对源图像进行转换:
dst(x,y)=src(mapx(x,y),mapy(x,y))
This function cannot operate in-place.
Parameters
src | 源图像 |
dst | 目标图像与源图像大小和通道数相同 |
map1 | The first map of either (x,y) points or just x values having the type CV_16SC2 , CV_32FC1, or CV_32FC2. See convertMaps for details on converting a floating point representation to fixed-point for speed. |
map2 | y方向的映射参数. 注意 map_y 和 map_x 与 src 的大小一致 CV_16UC1, CV_32FC1, or none (empty map if map1 is (x,y) points), respectively. |
interpolation | 插值 (see cv::InterpolationFlags). 不支持 INTER_AREA ;非整数像素坐标插值标志. 这里给出的是默认值(双线性插值) |
borderMode | 像素外推方法(see cv::BorderTypes). When borderMode=BORDER_TRANSPARENT, it means that the pixels in the destination image that corresponds to the "outliers" in the source image are not modified by the function. |
borderValue | 值,默认为0 |
interpolation algorithm
enum cv::BorderTypes |
Various border types, image boundaries are denoted with |
See also
borderInterpolate, copyMakeBorder