How do I solve this problem:(Problem 44958. Crop an Image)

I know the function is imcrop,but I even don't understand the meaning of 'Rmin Cmin Rpix Cpix ',

 採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 13 日

1 投票

  • Rmin - first row to crop at
  • Cmin - first column to crop at
  • Rpix - number of row pixels to use
  • Cpix - number of column pixels to use
Things to watch out for:
  • a lot of MATLAB functions deal in x, y coordinates, rather than rows and columns
  • the cropping functions operate a bit oddly in whether to include a pixel, so you might end up with one more row or column than you were expecting. Read the documentation carefully.

1 件のコメント

军 川
军 川 2022 年 4 月 13 日
Thanks you, I have solved the problem

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

質問済み:

2022 年 4 月 13 日

コメント済み:

2022 年 4 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by