matlab图像处理的几个实例.docxVIP

  • 2
  • 0
  • 约3.64千字
  • 约 9页
  • 2019-09-25 发布于江苏
  • 举报
Matlab图像处理的几个实例(初学者用) 1.图像的基本信息及其加减乘除 clear,clc; P=imread(yjx.jpg); whos P Q=imread(dt.jpg); P=im2double(P); Q=im2double(Q); gg1=im2bw(P,0.3); gg2=im2bw(P,0.5); gg3=im2bw(P,0.8); K=imadd(gg1,gg2); L=imsubtract(gg2,gg3); cf=immultiply(P,Q); sf=imdivide(Q,P); subplot(421),imshow(P),title(郁金香原图); subplot(422),imshow(gg1),title(0.3); subplot(423),imshow(gg2),title(0.5); subplot(424),imshow(gg3),title(0.8); subplot(425),imshow(K),title(0.3+0.5); subplot(426),imshow(L),title(0.5-0.3); subplot(427),imshow(cf),title(P*Q); subplot(428),imshow(sf),title(P/Q); 2.图像缩放 clear,clc; I=imread(dt.jpg); A=imres

文档评论(0)

1亿VIP精品文档

相关文档