How to increase image size while keeping image sharp?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone,
This is a pretty general question. I took a screenshot of the MATLAB toolstrip (actually part of it).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/614640/image.png)
It looks great except I want it bigger. So I use imresize( ),
B = imresize(A, 4);
but it looks pixelated.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/614645/image.png)
Is there a better way to do this?
2 Kommentare
Antworten (1)
Image Analyst
am 11 Mai 2021
You need to use the nearest option:
B = imresize(A, 4, 'nearest');
5 Kommentare
Image Analyst
am 11 Mai 2021
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.
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!