Effacer les filtres
Effacer les filtres

How to resize image without changing aspect ratio of the images?

1 vue (au cours des 30 derniers jours)
anu
anu le 3 Avr 2017
Commenté : sanakhan le 26 Avr 2017
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 commentaires
Jan
Jan le 3 Avr 2017
@anu: In the title you want "without" changing the aspect ratio, in the body it is "with". Please clarify this.
sanakhan
sanakhan le 26 Avr 2017
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by