当前位置:网站首页>Opencv common method source link (continuous update)
Opencv common method source link (continuous update)
2022-07-02 08:08:00 【Villanelle#】
1. Calculate the absolute value of the matrix difference cv::absdiff application
CV_EXPORTS_W void absdiff(InputArray src1, InputArray src2, OutputArray dst);
2. Use threshold to output binary image cv::threshold application
double threshold( InputArray src, OutputArray dst,
double thresh, double maxval, int type );
3. Compare image pixel values cv::compare application
CV_EXPORTS_W void compare(InputArray src1, InputArray src2, OutputArray dst, int cmpop);
4. Segment the foreground and background of the image cv::grabCut application
CV_EXPORTS_W void grabCut( InputArray img, InputOutputArray mask, Rect rect,
InputOutputArray bgdModel, InputOutputArray fgdModel,
int iterCount, int mode = GC_EVAL );
5. Recognize a certain range of pixels in the image and output a binary image cv::inRange application
CV_EXPORTS_W void inRange(InputArray src, InputArray lowerb,
InputArray upperb, OutputArray dst);
6. Calculate the histogram cv::calcHist application
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. Apply lookup table cv::LUT application
CV_EXPORTS_W void LUT(InputArray src, InputArray lut, OutputArray dst);
8. Back projection histogram cv::calcBackProject application
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. Mean shift algorithm cv::meanShift application
CV_EXPORTS_W int meanShift( InputArray probImage,
CV_IN_OUT Rect& window,
TermCriteria criteria );
10. Comparison histogram cv::compareHist application
CV_EXPORTS_W double compareHist( InputArray H1,
InputArray H2,
int method );
11. Transpose and flip the image cv::transposecv::flip application
CV_EXPORTS_W void transpose(InputArray src, OutputArray dst);
CV_EXPORTS_W void flip(InputArray src, OutputArray dst, int flipCode);
12. Adaptive thresholding cv::adaptiveThreshold application
CV_EXPORTS_W void adaptiveThreshold( InputArray src, OutputArray dst,
double maxValue, int adaptiveMethod,
int thresholdType, int blockSize, double C );
13. Generate integral image cv::integral application
CV_EXPORTS_W void integral( InputArray src, OutputArray sum, int sdepth = -1 );
14. Corrosion and swelling images cv::erodecv::dilate application
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. Open and close the image cv::morphologyEx application
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. Watershed function cv::watershed application
CV_EXPORTS_W void watershed( InputArray image, InputOutputArray markers );
17. Copy / Transform the image GpuMat::convertTo application
void GpuMat::convertTo(OutputArray dst, int rtype,
double alpha, double beta) const
18. Block filter and Gaussian filter cv::blurcv::GaussianBlur application
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. Two dimensional custom kernel filter cv::filter2D application
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. Image reduction and enlargement cv::pyrDowncv::pyrUpcv::resize application
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. Median filter cv::medianBlur application
CV_EXPORTS_W void medianBlur( InputArray src, OutputArray dst, int ksize );
边栏推荐
- Using super ball embedding to enhance confrontation training
- Target detection for long tail distribution -- balanced group softmax
- Embedding malware into neural networks
- 使用C#语言来进行json串的接收
- 11月24号,我们为“满月”庆祝
- Erase method in string
- Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired
- 用C# 语言实现MYSQL 真分页
- C#与MySQL数据库连接
- open3d学习笔记三【采样与体素化】
猜你喜欢
![[learning notes] matlab self compiled Gaussian smoother +sobel operator derivation](/img/f1/4afde3a4bf01254b3e3ff8bc659f9c.png)
[learning notes] matlab self compiled Gaussian smoother +sobel operator derivation

jetson nano安装tensorflow踩坑记录(scipy1.4.1)

Look for we media materials from four aspects to ensure your creative inspiration

服务器的内网可以访问,外网却不能访问的问题

Array and string processing, common status codes, differences between PHP and JS (JS)

Vscode下中文乱码问题

Graph Pooling 简析

C语言实现XML生成解析库(XML扩展)

On the back door of deep learning model

11月24号,我们为“满月”庆祝
随机推荐
力扣每日一题刷题总结:栈与队列篇(持续更新)
OpenCV3 6.2 低通滤波器的使用
Dynamic extensible representation for category incremental learning -- der
Principes fondamentaux de la théorie musicale (brève introduction)
Open3d learning notes 1 [first glimpse, file reading]
用于类别增量学习的动态可扩展表征 -- DER
C#与MySQL数据库连接
Meta Learning 简述
Open3D学习笔记一【初窥门径,文件读取】
静态库和动态库
Brief introduction of prompt paradigm
The hystrix dashboard reported an error hystrix Stream is not in the allowed list of proxy host names solution
力扣方法总结:双指针
install. IMG production method
OpenCV关于x,y坐标容易混淆的心得
Open3d learning notes II [file reading and writing]
用MLP代替掉Self-Attention
AR系统总结收获
我的vim配置文件
E-R画图明确内容