How can I change imge dimensions?

3 Ansichten (letzte 30 Tage)
victor
victor am 19 Jul. 2018
Bearbeitet: James Tursa am 20 Jul. 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 Kommentare
Walter Roberson
Walter Roberson am 19 Jul. 2018
outfilename = strcat('resize_', jpgFileName);
imrewrite(resize, outfilename);
victor
victor am 20 Jul. 2018
Thank you

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image 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!

Translated by