필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to calculate the area of different portions of the leaf using K-means??

조회 수: 1 (최근 30일)
Kumar Arindam Singh
Kumar Arindam Singh 2017년 4월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
I have this image.
I have already calculated the area of the whole leaf.
I wanted to calculate the area of yellow part,green part and the background using K-Means algorithm.
Please help.
Thanxxx.....

답변 (1개)

Image Analyst
Image Analyst 2017년 4월 17일
Your leaf segmentation is lousy because you started with a bad picture. Take the picture again with a black velvet background behind the leaf. That beige background you have is not allowing good segmentation. With a black background it would be SO much easier. Also, put the leaf under a thin sheet of glass to reduce shadows, though that should not be a problem if you use the black background. Finally you need to make sure you have good control over the light. Don't use a flash since they vary too much in light output from snapshot to snapshot. Use broad lighting, not a point source. Measure the light illuminance with a luxmeter to make sure it's consistent from image to image. If you really want to be accurate, you'd have an X-rite ColorChecker chart in each image and calibrate the image to LAB colorspace (like my icon to the left).
For color classification, you might want to take a look at the demo in the Image Processing Toolbox: https://www.mathworks.com/help/images/examples/color-based-segmentation-using-the-l-a-b-color-space.html which does it in LAB colorspace though not calibrated lab colorspace (which you'd need the ColorChecker chart and my attached directions for).

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by