openCV图像处理之重映射
来源:互联网 发布:淘宝达人刷一万粉丝 编辑:程序博客网 时间:2024/06/01 19:09
BORDER_CONSTANT
, const Scalar & borderValue = Scalar()
)将一个通用的几何变换应用于图像。
重映射将运用特定的映射对源图像进行转换:
This function cannot operate in-place.
- Parameters
- src源图像dst目标图像与源图像大小和通道数相同map1The 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.map2y方向的映射参数. 注意 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
nearest neighbor interpolation
INTER_LINEARbilinear interpolation
INTER_CUBICbicubic interpolation
INTER_AREAresampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire'-free results. But when the image is zoomed, it is similar to the INTER_NEAREST method.
INTER_LANCZOS4Lanczos interpolation over 8x8 neighborhood
INTER_MAXmask for interpolation codes
WARP_FILL_OUTLIERSflag, fills all of the destination image pixels. If some of them correspond to outliers in the source image, they are set to zero
WARP_INVERSE_MAPflag, inverse transformation
For example, polar transforms:
- flag is not set:
dst(ϕ,ρ)=src(x,y) - flag is set:
dst(x,y)=src(ϕ,ρ)
Various border types, image boundaries are denoted with |
- See also
- borderInterpolate, copyMakeBorder
iiiiii|abcdefgh|iiiiiii
with some specified i
aaaaaa|abcdefgh|hhhhhhh
fedcba|abcdefgh|hgfedcb
cdefgh|abcdefgh|abcdefg
gfedcb|abcdefgh|gfedcba
uvwxyz|absdefgh|ijklmno
same as BORDER_REFLECT_101
BORDER_DEFAULTsame as BORDER_REFLECT_101
BORDER_ISOLATEDdo not look outside of ROI
- openCV图像处理之重映射
- OpenCV之imgproc 模块. 图像处理(3)霍夫线变换 霍夫圆变换 Remapping 重映射 仿射变换
- 图像处理之重映射、仿射和透射变换
- opencv学习之重映射
- Opencv学习之重映射
- opencv学习(三十四)之重映射remap
- OpenCV之图像平滑处理
- OpenCV学习之图像处理
- OpenCV图像处理篇之图像平滑
- opencv图像处理之图像卷积
- 图像的重映射
- OpenCV 重映射
- opencv图像映射
- 图像处理之 YUYV422 To OpenCV IplImage
- OpenCV图像处理篇之采样金字塔
- OpenCV图像处理篇之Hough变换
- 图像处理之 YUYV422 To OpenCV IplImage
- OpenCv学习笔记之图像平滑处理
- spring集成mybatis,dbcp连接池,配置文件
- pktgen+dpdk(2.2.0)
- ;(function(window, document, $) { 的作用及解释
- spring mvc+mybatis笔记(一)
- ubuntu16 vim 支持python
- openCV图像处理之重映射
- 模板笔记006 - 术语
- Swift初体验-控制流
- Exeution failed for task 解决方案
- awesome系列网址
- javascript面向对象
- STA优化
- Qt Stylesheets Button Bar
- java 五种创建对象的方法