Creating a 512 x 512 image from 600 x 800

2 views (last 30 days)
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?

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!