How to copy one image to another (blank) pixel by pixel?
古いコメントを表示
Xc = imread('IM1.jpg');
tam = size(Xc)
sizex = tam(1);
sizey = tam(2);
blank = ones(sizex,sizey,3);
for i=1:sizex
for j=1:sizey
for d=1:3
blank(i,j,d)=Xc(i,j,d);
end
end
end
imshow(blank);
why isn't it working? any ideas?
採用された回答
その他の回答 (1 件)
Jonathan Sullivan
2013 年 6 月 26 日
You should try this:
Xc = imread('IM1.jpg');
blank = Xc;
imshow(blank);
カテゴリ
ヘルプ センター および File Exchange で Image Category Classification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!