RE:Resizing an Image
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Hello friends Can anyone help me with the code to resize an Image of dimension 240x160. Actually I need the logic behind inbuilt function to resize coz Iam writing the verilog code for I need to display the image on vga monitor i.e. the image of size exactly half
Kindly help me out Thanks in advance
回答 (1 件)
Youssef Khmou
2013 年 3 月 17 日
編集済み: Youssef Khmou
2013 年 3 月 17 日
HI, try :
% Given your image I
I=imread('circuit.tif');
1) Using imresize :
X=imresize(I,0.5);
2)or try down-sampling manually:
X=I(1:2:end,1:2:end);
3) or try using 'downsample' function :
Y=downsample(I,2);
X=downsample(Y',2)';
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!