当前位置:网站首页>OpenCV常用方法出处链接(持续更新)
OpenCV常用方法出处链接(持续更新)
2022-07-02 06:28:00 【Villanelle#】
1.计算矩阵差值的绝对值 cv::absdiff应用
CV_EXPORTS_W void absdiff(InputArray src1, InputArray src2, OutputArray dst);
2.利用阈值输出二值图像 cv::threshold应用
double threshold( InputArray src, OutputArray dst,
double thresh, double maxval, int type );
3.比较图像像素值 cv::compare应用
CV_EXPORTS_W void compare(InputArray src1, InputArray src2, OutputArray dst, int cmpop);
4.分割图像前景背景 cv::grabCut应用
CV_EXPORTS_W void grabCut( InputArray img, InputOutputArray mask, Rect rect,
InputOutputArray bgdModel, InputOutputArray fgdModel,
int iterCount, int mode = GC_EVAL );
5.识别图像中一定范围的像素输出二值图 cv::inRange应用
CV_EXPORTS_W void inRange(InputArray src, InputArray lowerb,
InputArray upperb, OutputArray dst);
6.计算直方图 cv::calcHist应用
CV_EXPORTS void calcHist( const Mat* images, int nimages,
const int* channels, InputArray mask,
OutputArray hist, int dims, const int* histSize,
const float** ranges, bool uniform = true, bool accumulate = false );
7.应用查找表 cv::LUT应用
CV_EXPORTS_W void LUT(InputArray src, InputArray lut, OutputArray dst);
8.反向投影直方图 cv::calcBackProject应用
CV_EXPORTS void calcBackProject( const Mat* images, int nimages,
const int* channels, InputArray hist,
OutputArray backProject, const float** ranges,
double scale = 1, bool uniform = true );
9.均值平移算法 cv::meanShift应用
CV_EXPORTS_W int meanShift( InputArray probImage,
CV_IN_OUT Rect& window,
TermCriteria criteria );
10.比较直方图 cv::compareHist应用
CV_EXPORTS_W double compareHist( InputArray H1,
InputArray H2,
int method );
11.转置和翻转图像 cv::transposecv::flip应用
CV_EXPORTS_W void transpose(InputArray src, OutputArray dst);
CV_EXPORTS_W void flip(InputArray src, OutputArray dst, int flipCode);
12.自适应阈值化 cv::adaptiveThreshold应用
CV_EXPORTS_W void adaptiveThreshold( InputArray src, OutputArray dst,
double maxValue, int adaptiveMethod,
int thresholdType, int blockSize, double C );
13.生成积分图像 cv::integral应用
CV_EXPORTS_W void integral( InputArray src, OutputArray sum, int sdepth = -1 );
14.腐蚀和膨胀图像 cv::erodecv::dilate应用
CV_EXPORTS_W void erode( InputArray src, OutputArray dst, InputArray kernel,
Point anchor = Point(-1,-1), int iterations = 1,
int borderType = BORDER_CONSTANT,
const Scalar& borderValue = morphologyDefaultBorderValue() );
CV_EXPORTS_W void dilate( InputArray src, OutputArray dst, InputArray kernel,
Point anchor = Point(-1,-1), int iterations = 1,
int borderType = BORDER_CONSTANT,
const Scalar& borderValue = morphologyDefaultBorderValue() );
15.开启和闭合图像 cv::morphologyEx应用
CV_EXPORTS_W void morphologyEx( InputArray src, OutputArray dst,
int op, InputArray kernel,
Point anchor = Point(-1,-1), int iterations = 1,
int borderType = BORDER_CONSTANT,
const Scalar& borderValue = morphologyDefaultBorderValue() );
16.分水岭函数 cv::watershed应用
CV_EXPORTS_W void watershed( InputArray image, InputOutputArray markers );
17.拷贝/变换图像 GpuMat::convertTo应用
void GpuMat::convertTo(OutputArray dst, int rtype,
double alpha, double beta) const
18.块滤波器和高斯滤波器 cv::blurcv::GaussianBlur应用
CV_EXPORTS_W void blur( InputArray src, OutputArray dst,
Size ksize, Point anchor = Point(-1,-1),
int borderType = BORDER_DEFAULT );
CV_EXPORTS_W void GaussianBlur( InputArray src, OutputArray dst, Size ksize,
double sigmaX, double sigmaY = 0,
int borderType = BORDER_DEFAULT );
19.二维自定义内核滤波器 cv::filter2D应用
CV_EXPORTS_W void filter2D( InputArray src, OutputArray dst, int ddepth,
InputArray kernel, Point anchor = Point(-1,-1),
double delta = 0, int borderType = BORDER_DEFAULT );
20.图像缩减和放大 cv::pyrDowncv::pyrUpcv::resize应用
CV_EXPORTS_W void pyrDown( InputArray src, OutputArray dst,
const Size& dstsize = Size(), int borderType = BORDER_DEFAULT );
CV_EXPORTS_W void pyrUp( InputArray src, OutputArray dst,
const Size& dstsize = Size(), int borderType = BORDER_DEFAULT );
CV_EXPORTS_W void resize( InputArray src, OutputArray dst,
Size dsize, double fx = 0, double fy = 0,
int interpolation = INTER_LINEAR );
21.中值滤波器 cv::medianBlur应用
CV_EXPORTS_W void medianBlur( InputArray src, OutputArray dst, int ksize );
边栏推荐
- Gensim如何冻结某些词向量进行增量训练
- Erase method in string
- open3d环境错误汇总
- 力扣每日一题刷题总结:字符串篇(持续更新)
- 【学习笔记】Matlab自编图像卷积函数
- 联邦学习下的数据逆向攻击 -- GradInversion
- 多站点高可用部署
- 【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
- [learning notes] matlab self compiled Gaussian smoother +sobel operator derivation
- Summary of solving the Jetson nano installation onnx error (error: failed building wheel for onnx)
猜你喜欢

【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》

【MobileNet V3】《Searching for MobileNetV3》

The internal network of the server can be accessed, but the external network cannot be accessed

【学习笔记】Matlab自编图像卷积函数
![Open3d learning note 3 [sampling and voxelization]](/img/71/0b2ac5dfd538017de639e5651c7f46.png)
Open3d learning note 3 [sampling and voxelization]
![[learning notes] matlab self compiled image convolution function](/img/82/43fc8b2546867d89fe2d67881285e9.png)
[learning notes] matlab self compiled image convolution function

樂理基礎(簡述)

【双目视觉】双目立体匹配

Several methods of image enhancement and matlab code

What if the laptop can't search the wireless network signal
随机推荐
稀疏矩阵存储
Using super ball embedding to enhance confrontation training
open3d环境错误汇总
Graph Pooling 简析
Daily practice (19): print binary tree from top to bottom
Embedding malware into neural networks
How to turn on night mode on laptop
Several methods of image enhancement and matlab code
Vscode下中文乱码问题
Matlab数学建模工具
Global and Chinese markets for conventional rubber track 2022-2028: Research Report on technology, participants, trends, market size and share
Principes fondamentaux de la théorie musicale (brève introduction)
jetson nano安装tensorflow踩坑记录(scipy1.4.1)
针对语义分割的真实世界的对抗样本攻击
open3d学习笔记三【采样与体素化】
王-课外单词
简易打包工具的安装与使用
【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》
Summary of open3d environment errors
SQLyog远程连接centos7系统下的MySQL数据库