1 / 14
文档名称:

医学图像处理实验.doc

格式:doc   大小:2,417KB   页数:14页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

医学图像处理实验.doc

上传人:君。好 2020/5/20 文件大小:2.36 MB

下载得到文件列表

医学图像处理实验.doc

相关文档

文档介绍

文档介绍:实验一yq1I=imread('cameraman、tif');%读黑白图像subplot(2,2,1);imshow(I)%显示图像subplot(2,2,2);imhist(I)%显示直方图J=imadjust(I,[0、020、7],[01]);%对比度增强subplot(2,2,3);imshow(J)subplot(2,2,4);imhist(J)I1=imresize(I,0、5);imview(I1)%缩小I2=imresize(I,1、5);imview(I2)%放大I3=imrotate(I,45,'bilinear','crop');imview(I3)%旋转45°%%原图、直方图对比度增强、直方图%%缩小%%放大%%旋转45°yq2I=imread('pears、png');imshow(I);I1=rgb2gray(I);%把彩***像转换成灰度图像figure,imshow(I1);info=imfinfo('pears、png')%查询文件信息imwrite(I1,'D:\yq\小小、png');%写图像info=:'C:\MATLAB7\toolbox\images\imdemos\pears、png':'03-May-200313:53:58':554554Format:'png'FormatVersion:[]Width:732Height:486BitDepth:24ColorType:'truecolor'FormatSignature:[13780787113102610]Colormap:[]Histogram:[]InterlaceType:'none'Transparency:'none'SimpleTransparencyData:[]BackgroundColor:[]RenderingIntent:[]Chromaticities:[]Gamma:[]XResolution:[]YResolution:[]ResolutionUnit:[]XOffset:[]YOffset:[]OffsetUnit:[]SignificantBits:[]ImageModTime:'20Feb200320:53:33+0000'Title:[]Author:[]Description:[]Copyright:'CopyrightCorel'CreationTime:[]Software:[]Disclaimer:[]Warning:[]Source:[]Comment:[]OtherText:[]yq3[I,map]=imread('trees、tif');imshow(I,map)I1=ind2gray(I,map);%把索引色转换成灰度图像figure,imshow(I1,map)%%索引***像%%灰度图像实验二yq4%%对比度调整I=imread('pout、tif');subplot(2,2,1);imshow(I);subplot(2,2,2);imhist(I);J=imadjust(I,[0、30、7],[01]);subplot(2,2,3);imshow(J);subplot(2,2,4);imhist(J);%%原图、直方图对比度增强、直方图yq5%%直方图均衡化:I=imread('pout、tif');imshow(I);figure,imhist(I);[J,T]=histeq(I,64);figure,imshow(J);figure,imhist(J);yq6%%线性滤波得MATLAB实现I=imread('kids、tif');I1=imnoise(I,'salt&pepper',0、02);%加椒盐噪声K1=filter2(fspecial('average',3),I1)/255;K2=filter2(fspecial('average',5),I1)/255;K3=filter2(fspecial('average',7),I1)/255;subplot(2,2,1);imshow(I1);title('噪声图像');subplot(2,2,2);imshow(K1);title('3×3');subplot(2,2,3);imshow(K2);title('5×5');subplot(2,2,4);imshow(K2);title('7×7');yq7%%中值滤波MATLAB实现I=imread('eight、tif');imshow(I);J=imnoise(I,'gaussian',0,0、02);figure;imshow(J);K1=medfilt2(J,[3,3]);K2=medfilt2(J,[5,5]);K3=medfilt2(J,[7,7