フィルターのクリア

Can anyone help me in this please, I try to resize the image. I'm beginner

1 回表示 (過去 30 日間)
Sandeep parajuli
Sandeep parajuli 2020 年 5 月 30 日
コメント済み: Image Analyst 2020 年 5 月 31 日
A=imshow("my.jpg");
[rows,columns]= size(A);
i=1;j=1;
c= zeros(rows/2,columns/2);
for x= 1:2:rows
for y = 1:2:columns
c(i,j) = A(x,y);
j=j+1;
end
i=i+1;
j=1;
end
figure,imshow(A);
figure,imshow(c/255);
figure,imshow(c),colormap(gray);

回答 (1 件)

Sai Sri Pathuri
Sai Sri Pathuri 2020 年 5 月 30 日
You may use imresize function
  3 件のコメント
Image Analyst
Image Analyst 2020 年 5 月 31 日
imresize() should work. Post the image that you claim it did not work on, and post your code where you called imresize() so we can try to reproduce your problem. https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by