文件名称:图像处理代码共享-gauss_filter.m
文件大小:436B
文件格式:M
更新时间:2022-09-01 20:08:30
matlab
图像处理代码共享-gauss_filter.m ---------------------------------我是分割线-------------------------------------- h=fspecial%3*3的均值滤波器 h=fspecial%半径为5的圆形平均模板 h=fspecial%5*5,标准差为0.5的高斯低通滤波器 h=fspecial%加强水平边缘的竖直梯度算子 ---------------------------------我是分割线-------------------------------------- I=imread; figure,imshow; h3_5=fspecial; I3_5=imfilter; figure,imshow; h3_18=fspecial; I3_18=imfilter; figure,imshow; h5_8=fspecial; I5_8=imfilter; figure,imshow; imwrite; h7_12=fspecial; I7_12=imfilter; figure,imshow; imwrite; ---------------------------------我是分割线-------------------------------------- f=imread; imshow; w=[0.1 0.1 0.1;0.1 0.1 0.1;0.1 0.1 0.1] w g=imfilter; figure,imshow; ---------------------------------我是分割线-------------------------------------- I=imread; figure,imshow; h=fspecial; I3=imfilter; figure,imshow; h=fspecial; I5=imfilter; figure,imshow; ---------------------------------我是分割线-------------------------------------- %Robert 交叉梯度 I=imread; imshow; w1=[-1 0;0 1]; w2=[0 -1;1 0]; G1=imfilter; G2=imfilter; G=abs abs; figure,imshow; figure,imshow,[]); figure,imshow,[]); ---------------------------------我是分割线-------------------------------------- %三种拉普拉斯模板 I=imread; imshow; I=double; w1=[0 -1 0;-1 4 -1;0 -1 0]; L1=imfilter; w2=[-1 -1 -1;-1 8 -1;-1 -1 -1]; L2=imfilter; figure,imshow,[]); figure,imshow,[]); w3=[1 4 1;4 -20 4;1 4 1]; L3=imfilter; figure,imshow,[]); ---------------------------------我是分割线-------------------------------------- %sobel梯度 I=imread; w1=fspecial; w2=w1'; G1=imfilter; G2=imfilter; G=abs abs; figure,imshow; figure,imshow; figure,imshow; ---------------------------------我是分割线-------------------------------------- I=imread; figure,imshow; Id=double; h_lap=[-1 -1 -1;-1 8 -1;-1 -1 -1]; I_lap=imfilter; figure,imshow),[]); h_log=fspecial; I_log=imfilter; figure,imshow),[]); h_log=fspecial; I_log=imfilter; figure,imshow),[]);