How can I change imge dimensions?

2 visualizaciones (últimos 30 días)
victor
victor el 19 de Jul. de 2018
Editada: James Tursa el 20 de Jul. de 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 comentarios
Walter Roberson
Walter Roberson el 19 de Jul. de 2018
outfilename = strcat('resize_', jpgFileName);
imrewrite(resize, outfilename);
victor
victor el 20 de Jul. de 2018
Thank you

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by