i want to count all those object that contain black dots?
1 次查看(过去 30 天)
显示 更早的评论
i want to count all those object that contain black dots?is there any method to remove all those objects that empty? here is my image. image Analyst
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163576/image.bmp)
采纳的回答
Image Analyst
2016-5-7
First you need to do color segmentation to find all the light purple things. That's pretty easy - see my File Exchange or use the Color Thresholder App from the Apps tab on the MATLAB tool ribbon.
Then you need to split them apart because some round cells are overlapping. For that, see this: http://blogs.mathworks.com/steve/2013/11/19/watershed-transform-question-from-tech-support/.
Then you need to label with bwlabel() and call regionprops with a binary image that is split apart but still has the black dots in it. Ask for the Euler number. Count the number of results that have a Euler number less than 1.
3 个评论
Image Analyst
2016-5-8
Once you segment the color, the black dots will be holes in the segmented image.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!