How can I change imge dimensions?

1 vue (au cours des 30 derniers jours)
victor
victor le 19 Juil 2018
Modifié(e) : James Tursa le 20 Juil 2018
Hi, everyone!
I have a database of images (the number of images may vary) with different dimensions, need to change thier width/high (resize whole image but not crop it) to same one, then save the new images in a separate folder.
I have tried the im.resize function, but the image is cropped and information lost. It is necessary that the integrity of the image does not change, but only its parameters.
Thanks
  6 commentaires
Walter Roberson
Walter Roberson le 19 Juil 2018
outfilename = strcat('resize_', jpgFileName);
imrewrite(resize, outfilename);
victor
victor le 20 Juil 2018
Thank you

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by