- Convert the image to binary with best fit thresholding (or see other segmentation appoaches)
- Use bwlabel
Help: how to count the number of holes on the images and its sizes
6 次查看(过去 30 天)
显示 更早的评论
I attached a file containing image.. It consists of many black holes.. I want to count the number of black holes and its sizes.. I am very new to the image processing..It will be helpful it you provide some code in executing this.. Any help is much appreciated..
0 个评论
回答(1 个)
KALYAN ACHARJYA
2019-11-29
编辑:KALYAN ACHARJYA
2019-11-29
The input image seems a bit challenging, yet you can try the following basic methods and check the results.
One way:
[L,n] = bwlabel(binary_image) % here n gives the number of connected objects
or
Good Luck!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!