How can I change imge dimensions?
1 次查看(过去 30 天)
显示 更早的评论
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
2018-7-19
outfilename = strcat('resize_', jpgFileName);
imrewrite(resize, outfilename);
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!