Connected-component labeling with ImageMagick
Yes, it is now possible with ImageMagick 6.8.9-10 and newer, see here. So, if we start with this image: we can get the components labelled and also the bounding boxes, centroids and other statistics for each blob or component like this: convert input.png \ -colorspace gray -negate -threshold 10% \ -define connected-components:verbose=true \ -define connected-components:area-threshold=100 … Read more