필터 지우기
필터 지우기

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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by