I have read this:
Remove spurious small islands of noise in an image - Python OpenCV
erosion/dilation are suggested,and just wondering is it possible to do same thing by using connectedComponectsStats?I have googled,got these:
but from these,I can't figure out how to remove dots,so would you please tell me how to do it,thanks in advance!
update: What I really want to do is extracting human shape from blow image by remove small dots.