How to change the image resolution?

14 ビュー (過去 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.
  1 件のコメント
peyush
peyush 2015 年 7 月 19 日
thanks

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by