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 Center および File ExchangeImages についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by