%{
this little program use for transpose a image
in the execute time it will show the before and after images
than save the transposed image as a new image
so you can rewrite the fliename at the first and last line
%}
img = imread('sensou.jpg');
img2 = img;
for row = 1:500
for col = 1:500
for depth = 1:3
img2(col, row,depth) = img(row, col,depth);
end
end
end
figure, imshow(img);
figure, imshow(img2);
imwrite(img2, 'sensou2.jpg');
sensou.jpg
因為在幫歌曲加入專輯插圖時發現網路上的圖跟ryo在ニコ上傳的差了一個對角旋轉
本來想說在小畫家可以用水平加垂直翻轉能得到對角線旋轉的效果,結果做不出來
又不想去裝很肥的修圖軟體(其實是自己不會用),想說就回去練習寫寫看MATLAB
因為OpenCV寫起來比較麻煩,而且自己比較不熟...
雖然寫好的可以放到path下,以後可以用command line重新使用比較方便