Creating a 512 x 512 image from 600 x 800

1 vue (au cours des 30 derniers jours)
bigdog
bigdog le 4 Fév 2015
Commenté : bigdog le 4 Fév 2015
The idea is to have 512 pixels in both rows and columns of my image. I'm not sure which function I would use to do so. Any ideas?

Réponse acceptée

William Frane
William Frane le 4 Fév 2015
Try imresize(). This syntax:
B = imresize(A, [numrows numcols])
should allow you to scale an image without preserving the original aspect ratio.
  1 commentaire
bigdog
bigdog le 4 Fév 2015
Thank you! Now I have added a colored image to my workspace, but using colormap(gray) it is still colored. Any ideas?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by