1、数字图像处理作业一

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1、图像处理作业一程序:%Createanimagelikethefollowing£º%NAME:Hw1_sol.m%DESC:SolutionofHw2programmingassignement%AUTHOR:%DATE:3-20-2011%initablackimage(Icreatedabiggerimageinordertohave%%enoughnestedsquaresspacefor)i=512;I=uint8(zeros(i));%initsidedecrementdelta_s=1;intensity=0;%initintensitywhileintensity256%updatetheimageindices=delta_s:i-delta_s;I(indices,indices)=intensity;intensity;imshow(I)%showtheresultsdelta_s=delta_s+40;%noticethewaymatlabhandlesthestringsintensity=intensity+35;%updatetheintensityend;运行结果:

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功