How can I detemine the presence of some colors (e.g white, light brown, dark brown, red, blue gray and black) in a piture like attached one?

조회 수: 3(최근 30일)
riya shahrin
riya shahrin 2020년 2월 21일
편집: riya shahrin 2020년 2월 22일
I have to count presence of any colour if its number of pixels is more than 5% of total number of pixels.

채택된 답변

Image Analyst
Image Analyst 2020년 2월 22일
With 16 millino colors possible in a24 bit RGB image, probably no color has that much. You'd be best off defining a limited number, like 5 or 10, color ranges. Then like Daniel said, use the Color Thresholder App to get the area fraction for each color range that you specify.
  댓글 수: 2
Image Analyst
Image Analyst 2020년 2월 22일
Try LDA, where you manually lassoo regions that you define to be whatever color you want. See my attached demo.

댓글을 달려면 로그인하십시오.

추가 답변(1개)

Community Treasure Hunt

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

Start Hunting!

Translated by