フィルターのクリア

How to calculate the area of an input image?

1 回表示 (過去 30 日間)
Mara Pereira
Mara Pereira 2020 年 6 月 21 日
コメント済み: Image Analyst 2020 年 6 月 28 日
How can I calculate the area of an input image with .jpg extension? If someone could explain please, it´s for a school project. And its suposed to be done using a scanner.
  2 件のコメント
KSSV
KSSV 2020 年 6 月 21 日
What you have in image? How you can calculate the area of image? You want to find the dimensions of an image?
Mara Pereira
Mara Pereira 2020 年 6 月 21 日
編集済み: Mara Pereira 2020 年 6 月 21 日
It will be this image, for example.
It is to calculate the area of the green part.

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

採用された回答

Image Analyst
Image Analyst 2020 年 6 月 21 日
  1. Use imsplit() to get the red, green, and blue channel.
  2. The leaf will be dark in the blue channel. Threshold the blue channel to get a mask = blueChannel < 200.
  3. Call bwarea() on the resulting mask.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by