資源簡介
數字圖像處理使用matlab進行幾何變換,內含.m源代碼及詳細實驗報告
代碼片段和文件信息
I=imread(‘D:\images\2.jpg‘);
%%垂直方向的錯切
[rowcoldep]=size(I);?
I1=zeros(rowcol);
dy?=?0.5;????????%錯切系數
for?m=1:row
????for?n=1:col
????????x?=?round(m);
????????y?=?round(n?+?dy?*?m);
????????I1(xy)=I(mn);
????end
end
subplot(121);imshow(I);title(‘原圖‘);
subplot(122);imshow(I1[]);title(‘垂直錯切后的圖片‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????8800856??2018-10-14?23:04??幾何變換\chuizhicuoqie.fig
?????文件????????341??2018-10-14?23:04??幾何變換\chuizhicuoqie.m
?????文件????6060991??2018-10-14?23:12??幾何變換\fangda.fig
?????文件????????807??2018-10-14?23:12??幾何變換\fangda.m
?????文件????8642062??2018-10-14?23:04??幾何變換\shuipingjingxiang.fig
?????文件????????418??2018-10-14?23:03??幾何變換\shuipingjingxiang.m
?????文件???11807241??2018-10-14?23:01??幾何變換\xuanzhuan.fig
?????文件???????1116??2018-10-14?23:00??幾何變換\xuanzhuan.m
?????目錄??????????0??2018-10-14?23:28??幾何變換
-----------?---------??----------?-----??----
?????????????35313832????????????????????9
評論
共有 條評論