Creating a 512 x 512 image from 600 x 800

조회 수: 1 (최근 30일)
bigdog
bigdog 2015년 2월 4일
댓글: bigdog 2015년 2월 4일
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일
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개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

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

Community Treasure Hunt

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

Start Hunting!

Translated by