Creating a 512 x 512 image from 600 x 800

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?

 채택된 답변

William Frane
William Frane 2015년 2월 4일

1 개 추천

Try imresize(). This syntax:
B = imresize(A, [numrows numcols])
should allow you to scale an image without preserving the original aspect ratio.

댓글 수: 1

bigdog
bigdog 2015년 2월 4일
Thank you! Now I have added a colored image to my workspace, but using colormap(gray) it is still colored. Any ideas?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2015년 2월 4일

댓글:

2015년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by