Shape detection of blobs
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi,
I have two different types of blobs:
- Close to kidney shape but not that perfect
- Close to a rectangle but with a dent or two and with filleted vertices
How can I differentiate between the two using Image processing
![blob.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207448/blob.bmp)
댓글 수: 0
답변 (1개)
Image Analyst
2019년 3월 8일
What I'd probably do is to get the bounding box. Then make a mask that is the bounding box and get the XOR of that with the blob. This will get you the black "bays" (black regions between blob and it's bounding box) as blobs. Then look at the area, and possibly aspect ratio (bounding box) of those blobs to determine which are like slivers, like the rectangular blob, and which are rounded and large like the bay in the kidney.
댓글 수: 3
Image Analyst
2019년 3월 8일
Actually I didn't mean bounding box, I meant convex hull. Try bwconvhull()
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!