当前位置:网站首页>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 );
边栏推荐
猜你喜欢

w10升级至W11系统,黑屏但鼠标与桌面快捷方式能用,如何解决
![Open3d learning notes 1 [first glimpse, file reading]](/img/68/68ea87817dbf788591216a32c9375b.png)
Open3d learning notes 1 [first glimpse, file reading]

用MLP代替掉Self-Attention

Using transformer for object detection and semantic segmentation

针对tqdm和print的顺序问题

图像增强的几个方法以及Matlab代码

【MnasNet】《MnasNet:Platform-Aware Neural Architecture Search for Mobile》

Principes fondamentaux de la théorie musicale (brève introduction)

Command line is too long

【FastDepth】《FastDepth:Fast Monocular Depth Estimation on Embedded Systems》
随机推荐
【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
What if the laptop can't search the wireless network signal
The internal network of the server can be accessed, but the external network cannot be accessed
One book 1078: sum of fractional sequences
On the back door of deep learning model
jetson nano安装tensorflow踩坑记录(scipy1.4.1)
Global and Chinese markets for magnetic resonance imaging (MRI) transmission 2022-2028: Research Report on technology, participants, trends, market size and share
On the confrontation samples and their generation methods in deep learning
【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》
静态库和动态库
图像增强的几个方法以及Matlab代码
STL速查手册
Simply test the two different data transmission methods of content length and chunked
Eklavya -- infer the parameters of functions in binary files using neural network
业务架构图
Open3d learning note 4 [surface reconstruction]
【Wing Loss】《Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks》
【Batch】learning notes
Get the width and height of the screen in real time (adaptive)
Hystrix dashboard cannot find hystrix Stream solution