필터 지우기
필터 지우기

How to change the image resolution?

조회 수: 43 (최근 30일)
peyush
peyush 2015년 7월 16일
댓글: peyush 2015년 7월 19일
For example: I have an image whose resolution is 46x67 and I want to change it to 35x45...How should I do that?...any help is highly appreciated
  댓글 수: 2
B.k Sumedha
B.k Sumedha 2015년 7월 17일
You can use the imresize function.
peyush
peyush 2015년 7월 18일
thanks

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

채택된 답변

Image Analyst
Image Analyst 2015년 7월 18일
You can either crop it
croppedImage = imresize(originalImage, [35, 45]);
or you can use indexing if the original image is larger:
croppedImage = originalImage(topRow:topRow+34, leftColumn:leftColumn+44);
You can make topRow and leftColumn whatever you want, such as 1.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by