How to detect triangles, ellipses, and circles in binary image?
이전 댓글 표시
I have this binary image, and I need to classify between triangles, ellipses, circles, and rectangles. I already done the rectangle classification part. Apart from thresholding circularity, extent, boundingbox values (which works), how to classify the triangle (it always gets detected as circle using algorithms), classify ellipses vs circles (there is 1 circle in image)?
답변 (1개)
Image Analyst
2021년 4월 2일
0 개 추천
A good way is to find the centroid and boundaries, then use findpeaks() to find the number of vertices. See my attached shape analysis demos.
카테고리
도움말 센터 및 File Exchange에서 Semantic Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!