How can I change imge dimensions?

1 回表示 (過去 30 日間)
victor
victor 2018 年 7 月 19 日
編集済み: James Tursa 2018 年 7 月 20 日
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 件のコメント
Walter Roberson
Walter Roberson 2018 年 7 月 19 日
outfilename = strcat('resize_', jpgFileName);
imrewrite(resize, outfilename);
victor
victor 2018 年 7 月 20 日
Thank you

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by