フィルターのクリア

want to know about the imcrop function's arguments.

1 回表示 (過去 30 日間)
tina jain
tina jain 2015 年 3 月 12 日
コメント済み: Image Analyst 2015 年 3 月 12 日
one of the format of the function imcrop(I,[75 68 130 112]). want to know how to know about the value of coordinates.

回答 (1 件)

Stephen23
Stephen23 2015 年 3 月 12 日
編集済み: Stephen23 2015 年 3 月 12 日
Read the very helpful documentation for imcrop. It explain how to use the function and all of the different possible inputs. In particular " I2 = imcrop(I, rect) crops the image I. rect is a four-element position vector[xmin ymin width height] that specifies the size and position of the crop rectangle."
The values are in pixels.
  3 件のコメント
Stephen23
Stephen23 2015 年 3 月 12 日
編集済み: Stephen23 2015 年 3 月 12 日
These are inputs. You choose the inputs to solve your problem: cropping an image. How you want to crop the image depends on you, not me.
The values that you are asking about define the part of image I that will be kept after being cropped. You should try some values and see what effect it has: trust me, your computer won't explode if you pick some values and try them out! Use imshow to view an image.
Image Analyst
Image Analyst 2015 年 3 月 12 日
xmin is the left column number. ymin is the top row number. I think the width and height are from pixel center to pixel center rather than the exact number of rows or columns. That means a difference of 1 row or column. Just try some things and see.

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

カテゴリ

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