当前位置:网站首页>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 );
边栏推荐
- Replace self attention with MLP
- 【BiSeNet】《BiSeNet:Bilateral Segmentation Network for Real-time Semantic Segmentation》
- Daily practice (19): print binary tree from top to bottom
- 用MLP代替掉Self-Attention
- Open3d learning notes 1 [first glimpse, file reading]
- [learning notes] numerical differentiation of back error propagation
- Correction binoculaire
- 【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
- 【学习笔记】Matlab自编高斯平滑器+Sobel算子求导
- Real world anti sample attack against semantic segmentation
猜你喜欢

【Batch】learning notes

w10升级至W11系统,黑屏但鼠标与桌面快捷方式能用,如何解决

【学习笔记】Matlab自编图像卷积函数

Income in the first month of naked resignation

【雙目視覺】雙目矯正

open3d学习笔记三【采样与体素化】

CVPR19-Deep Stacked Hierarchical Multi-patch Network for Image Deblurring论文复现

A brief analysis of graph pooling

On the back door of deep learning model

The internal network of the server can be accessed, but the external network cannot be accessed
随机推荐
稀疏矩阵存储
利用Transformer来进行目标检测和语义分割
Open3d learning note 3 [sampling and voxelization]
[learning notes] numerical differentiation of back error propagation
【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
SQL操作数据库语法
Open3d learning notes 1 [first glimpse, file reading]
包图画法注意规范
我的vim配置文件
多站点高可用部署
Graph Pooling 简析
服务器的内网可以访问,外网却不能访问的问题
力扣方法总结:滑动窗口
王-课外单词
One book 1078: sum of fractional sequences
C # connect to MySQL database
关于原型图的深入理解
【TCDCN】《Facial landmark detection by deep multi-task learning》
STL速查手册
Global and Chinese market of tillage finishing machines 2022-2028: Research Report on technology, participants, trends, market size and share