▶ 图像处理
# 图像处理
cuntou0906
凌晨三点的麓山南路!
展开
-
C C++实现Canny 边缘检测 - 图像处理
C C++实现Canny 边缘检测 - 图像处理Canny 边缘检测的实现步骤1 灰度化2 高斯滤波3 Sobel 卷积核计算 X、Y 方向梯度和梯度角4 极大值抑制5 双阈值法Canny 边缘检测的代码##########################ImgProcess.h###########################include <opencv2/core/core.hpp> #include <opencv2/highgui/high原创 2021-08-18 11:35:14 · 1471 阅读 · 0 评论 -
图像形态学处理(Matlab源码)
Morphology Algorithm of images,digital image processing.数字图像处理 形态学算法 包括图像的膨胀、腐蚀、开运算、闭运算、灰度化、骨架提取、裁剪等源码,均为自定义函数。运行方式:解压文件,直接在解压目录设置为matlab的工作路径,分别运行main_1.m、main_2.m、main_3.m三个文件main_1.m:运行时间大约2-3分钟 main_2.m:运行时间大约2-3分钟 main_3.m:运行时间大约7-8分钟源码 GitH原创 2021-01-25 13:44:04 · 520 阅读 · 0 评论 -
Visual Studio生成的可执行文件.exe 报错 找不到opencv_world3411.dll
Visual Studio生成的可执行文件.exe 报错 找不到opencv_world3411.dll 在Visual Studio生成的.exe文件需要外部依赖项,将exe文件拷到另一个没有装opencv的电脑无法运行,报错:找不到opencv_world3411.dll… 这是只需要将原创 2020-12-21 12:00:18 · 1190 阅读 · 0 评论 -
图像分割-大津法和迭代法(附代码)
大津法大津法流程大津法代码function [ output , thread1 ] = Dajin( f )%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dajin():利用迭代法寻求图像的阈值% f 输入图像% output 输出图像% thread1 阈值%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%sizeh = size(f,1);原创 2020-07-27 19:07:22 · 1349 阅读 · 1 评论 -
自定义二维卷积函数与高斯核,图像平滑处理
高斯核函数function [ output1,output2,output3,output4 ] = gaussKernel(sig,m)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% gaussKernel():归一化二维高斯滤波核函数% sig 对应于高斯函数定义中的σ% w 的大小为 m×m 其中m必须为奇数%output1:从高斯函数采样得到的模板%output2:模板除以第一个元素%output1:取整后的模板%out原创 2020-07-27 18:53:05 · 2092 阅读 · 1 评论