摘要: 腐蚀:求局部最小值 erode()void cv::erode ( InputArray src, OutputArray dst, InputArray kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType 阅读全文
posted @ 2021-03-20 18:34 蓝莓DeepL 阅读(141) 评论(0) 推荐(0)
摘要: 矩阵中,排序,取中值 参考链接:https://github.com/opencv/opencv/blob/f9b8ce1d25a5107cdd5b62d07da28580ccf18e88/modules/imgproc/src/smooth.cpp 阅读全文
posted @ 2021-03-20 14:40 蓝莓DeepL 阅读(72) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/godadream/article/details/81568844 阅读全文
posted @ 2021-03-20 13:55 蓝莓DeepL 阅读(40) 评论(0) 推荐(0)
摘要: void cv::boxFilter ( InputArray src, OutputArray dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BOR 阅读全文
posted @ 2021-03-20 12:05 蓝莓DeepL 阅读(62) 评论(0) 推荐(0)
摘要: 即 对该点附近的 一般为3×3或者5×5矩阵求和,然后取求均值放回该点 例如 12 23 67 34 222 52 16 7952 25 97 94 202 42 96 3982 64 227 84 22 20 126 5942 27 123 54 212 232 156 24922 23 97 9 阅读全文
posted @ 2021-03-20 10:09 蓝莓DeepL 阅读(430) 评论(0) 推荐(0)
摘要: 恢复内容开始 opencv函数threshold() double cv::threshold ( InputArray src,OutputArray dst,double thresh,double maxval,int type) Python: retval, dst = cv.thresh 阅读全文
posted @ 2021-03-14 21:35 蓝莓DeepL 阅读(480) 评论(0) 推荐(0)
摘要: 彩色转灰度图(常见方式) RGB-->GRAY 方法一: RGB[A] to Gray:Y←0.299⋅R+0.587⋅G+0.114⋅B opencv函数实现: cvtColor(src, bwsrc, cv::COLOR_RGB2GRAY); 方法二: Gray=(R+G+B)/3 方法三: G 阅读全文
posted @ 2021-03-14 00:43 蓝莓DeepL 阅读(758) 评论(0) 推荐(0)
摘要: cvtColor() void cv::cvtColor ( InputArray src,OutputArray dst,int code,int dstCn = 0) Python: dst = cv.cvtColor( src, code[, dst[, dstCn]] ) 参数 src 输入 阅读全文
posted @ 2021-03-13 23:10 蓝莓DeepL 阅读(1487) 评论(0) 推荐(0)
摘要: imshow() Python:None = cv.imshow( winname, mat ) 在指定的窗口中显示图像。imshow函数在指定的窗口中显示图像。如果窗口是使用cv :: WINDOW_AUTOSIZE标志创建的,则显示的图像具有其原始大小,但是仍然受屏幕分辨率的限制。否则,将缩放图 阅读全文
posted @ 2021-03-13 22:37 蓝莓DeepL 阅读(1328) 评论(0) 推荐(0)
摘要: 目录: 1,函数用法 2,参数说明 3,参数filename,支持的文件格式 4,参数flags 5,notes: 1,函数用法imread() retval = cv.imread( filename[, flags] ) 从文件加载图像。该函数imread从指定的文件加载图像并返回它。如果无法读 阅读全文
posted @ 2021-03-13 20:42 蓝莓DeepL 阅读(2157) 评论(0) 推荐(0)