Image resize without losing quality of image ? (urgent Issue)

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

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');
For more information, please refer to the documentation of imresize.
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
Comment posted as flag by @Asiye Ulas:
It works, Thank you a lot.

Accedi per commentare.

Risposte (1)

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

Richiesto:

il 10 Giu 2022

Commentato:

Rik
il 27 Giu 2022

Community Treasure Hunt

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

Start Hunting!

Translated by