How to resize image without changing aspect ratio of the images?
2 ビュー (過去 30 日間)
古いコメントを表示
I have collection 100 images. Each image is of different size and I want to make all images of the same size with changing aspect ratio. How to do it?
4 件のコメント
Jan
2017 年 4 月 3 日
@anu: In the title you want "without" changing the aspect ratio, in the body it is "with". Please clarify this.
sanakhan
2017 年 4 月 26 日
B = imresize(A,[numrows numcols]) no of rows and columns can be selected according to aspect ratio.
Try [NaN NaN] if you want to preserve the aspect ratio as that of input image or select rows & cols of your own choice.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!