Image resize without losing quality of image ? (urgent Issue)
Mostra commenti meno recenti
I have an image size 1080x854 px. And I resize image to 640x427 px. But imresize () func. does not work well. I lose image quality. Are there any parameter for imresize func. to do not losing to image resolution. Could anyone help me ? Quality of Pixels are changing.
3 Commenti
Balaji Udayagiri
il 22 Giu 2022
Hi Asiye,
As per my understanding, your question is about the loss of image resolution while downscaling. Down scaling an image always leads to loss of image resolution as you lose some of the original image data.
However, there are interpolation methods which you can use to improve the image resolution. Example: Bilinear, bicubic, nearest etc.
I = imread('img.jpg');
J = imresize(I,0.4,'nearest');
You can also define a custom interpolation kernel and then resize images using the custom kernel. Here is the documentation to Create and Compare Resizing Interpolation Kernels
Jan
il 22 Giu 2022
Rik
il 27 Giu 2022
It works, Thank you a lot.
Risposte (1)
Jan
il 22 Giu 2022
Of course reducing the number of pixels reduces the resolution. But you can reduce the artifcats:
imresize(Img, [640,427], 'lanczos3')
Categorie
Scopri di più su Read, Write, and Modify Image in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!