图像处理matlab程序实例.docVIP

  • 43
  • 0
  • 约1.02万字
  • 约 13页
  • 2017-01-14 发布于重庆
  • 举报
图像处理matlab程序实例

程序实例 1 旋转: x=imread(d:\MATLAB7\work\flower.jpg); y=imrotate(x,200,bilinear,crop); subplot(1,2,1); imshow(x); subplot(1,2,2); imshow(y) 2.图像的rgb clear [x,map]=imread(D:\Program Files\MATLAB\R2012a\bin\shaohaihe\shh1.jpg); y=x(90:95,90:95); imshow(y) R=x(90:95,90:95,1); G=x(90:95,90:95,2); B=x(90:95,90:95,3); R,G,B 3.加法运算 clear I=imread(D:\Program Files\MATLAB\R2012a\bin\shaohaihe\shh3.jpg); J=imnoise(I,gaussian,0,0.02);% 向图片加入高斯噪声 subplot(1,2,1),imshow(I); %显示图片 subplot(1,2,2),imshow(J); K=zeros(242,308); %产生全零的矩阵,大小与图片的大小一样 for i=1:100

文档评论(0)

1亿VIP精品文档

相关文档