资源描述
图像增强与平滑直方图:I=imread;imshow;I=rgb2gray; %三维变成二维的图;figure,imhist; %显示灰度分布直方图均衡处理:I=imread;I=rgb2gray;J=histeq;Subplot,imshow;Subplot,imshow;figure,Subplot,imhist; Subplot,imhist; %这个参数是什么意思?灰度变换:imadjust;I=imread;I=rgb2gray;J=imadjust;Subplot,imshow;Subplot,imshow;figure,Subplot,imhist; Subplot,imhist;图像反转:I=imread;I=rgb2gray;J=imadjust;Subplot,imshow;Subplot,imshow;figure,Subplot,imhist; Subplot,imhist;图像平滑噪声I=imread;I=rgb2gray;J=imnoise;H=ones/25;I2=imfilter; %领域平均法去噪;Subplot,imshow;Subplot,imshow;高斯噪声J=imnoise; %高斯噪声I=imread;I=rgb2gray;J=imnoise;H=ones/25;I2=imfilter; %领域平均法去噪;Subplot,imshow;Subplot,imshow;掩模大小对比I=imread;I=rgb2gray;J=imnoise;H=ones/25;H1=ones/25;I1=imfilter; %5*5领域平均法去噪I2=imfilter; %2*2领域平均法去噪Subplot,imshow;Subplot,imshow;中值滤波I=imread;I=rgb2gray;J=imnoise;H=ones/25;I2=medfilt2; Subplot,imshow;Subplot,imshow;梯度法对图像锐化I=imread;I=rgb2gray;I=double;IX,IY=gradient;GM=sqrt;figure,imshow;拉普拉斯贝尔特拉米算子I=imread;I=rgb2gray;I=double;Subplot,imshow;H=0 1 0,1 -4 1,0 1 0;J=conv2;figure,imshow;图像色彩加强rgb=imread;rbgnew=rgb;rbgnew=rgb;rbgnew=rgb;figure,imshow;图像分割边缘检测I=imread;I=rgb2gray;J=edge; /%edge 调用roberts ,算子,阀值 0.1figure,imshow;阀值0.05;.
展开阅读全文