How to increase image size while keeping image sharp?
이전 댓글 표시
Hi everyone,
This is a pretty general question. I took a screenshot of the MATLAB toolstrip (actually part of it).

It looks great except I want it bigger. So I use imresize( ),
B = imresize(A, 4);
but it looks pixelated.

Is there a better way to do this?
답변 (1개)
Image Analyst
2021년 5월 11일
You need to use the nearest option:
B = imresize(A, 4, 'nearest');
댓글 수: 5
Kevin
2021년 5월 11일
Image Analyst
2021년 5월 11일
I don't think you should use sharpen after it. That might introduce noise. The nearest option should give edges just as sharp as in the original, the only thing is it might give you jaggies that didn't exist in the original (because you magnified it so there are now more pixels).
Kevin
2021년 5월 11일
Image Analyst
2021년 5월 11일
Yes, it can be, which is good for me because that's my whole career and it's good if people think it's hard because they are impressed with my work.
Post your original image if you want.
Kevin
2021년 5월 11일
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!