How can I make the image resize without losing quality of image? I need to resize more than original sizes then resize into 512x512.
8 ビュー (過去 30 日間)
古いコメントを表示
Dayangku Nur Faizah Pengiran Mohamad
2023 年 11 月 8 日
回答済み: Image Analyst
2023 年 11 月 8 日
I have an image size 841x482 px. And I want to resize image to 512x512 px. But the function imresize () does not work well because my image seems lose the quality of the image. Any there any solution function I need to make my quality of the pixels not changing after the processing? Here's my codes and my example image:-
I=imread('1q.png');
imshow(I)
magnificationFactor = 1.25;
J=imresize(I,magnificationFactor);
imshowpair(I,J,method="montage")
imwrite(J,'1q.png');
0 件のコメント
採用された回答
Image Analyst
2023 年 11 月 8 日
Any time you resize the image you are going to be changing it. In particular, if you downsize the image, you will lose information. If you upsize it you will be adding information, which may or may not be accurate. Perhaps you don't want any "new" pixel values and in that case, you should use the 'nearest' option in imresize.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!