当前位置:网站首页>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::transpose
cv::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::erode
cv::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::blur
cv::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::pyrDown
cv::pyrUp
cv::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 );
边栏推荐
- 应对长尾分布的目标检测 -- Balanced Group Softmax
- 包图画法注意规范
- 简易打包工具的安装与使用
- Array and string processing, common status codes, differences between PHP and JS (JS)
- Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired
- On November 24, we celebrate the "full moon"
- Cvpr19 deep stacked hierarchical multi patch network for image deblurring paper reproduction
- Carla-UE4Editor导入RoadRunner地图文件(保姆级教程)
- Library function of C language
- How to back up the configuration before the idea when reinstalling the idea
猜你喜欢
VS Code配置问题
【MobileNet V3】《Searching for MobileNetV3》
MySQL optimization
浅谈深度学习中的对抗样本及其生成方法
Target detection for long tail distribution -- balanced group softmax
Programmers can only be 35? The 74 year old programmer in the United States has been programming for 57 years and has not retired
SQLyog远程连接centos7系统下的MySQL数据库
How to back up the configuration before the idea when reinstalling the idea
jetson nano安装tensorflow踩坑记录(scipy1.4.1)
open3d学习笔记五【RGBD融合】
随机推荐
[binocular vision] binocular correction
Vscode下中文乱码问题
利用Transformer来进行目标检测和语义分割
Global and Chinese market of medicine cabinet 2022-2028: Research Report on technology, participants, trends, market size and share
Brief introduction of prompt paradigm
Constant pointer and pointer constant
Using super ball embedding to enhance confrontation training
STM32疑难杂症之ST-LINK Connection error INVALID ROM TABLE
Global and Chinese markets for Salmonella typhi nucleic acid detection kits 2022-2028: Research Report on technology, participants, trends, market size and share
The internal network of the server can be accessed, but the external network cannot be accessed
Jetson nano installation tensorflow stepping pit record (scipy1.4.1)
Where do you find the materials for those articles that have read 10000?
Global and Chinese markets for conventional rubber track 2022-2028: Research Report on technology, participants, trends, market size and share
Command line is too long
解决jetson nano安装onnx错误(ERROR: Failed building wheel for onnx)总结
力扣每日一题刷题总结:链表篇(持续更新)
Global and Chinese market of snow sweepers 2022-2028: Research Report on technology, participants, trends, market size and share
Backup, recovery and repair of XFS file system
[learning notes] matlab self compiled image convolution function
Dynamic extensible representation for category incremental learning -- der