Menu
  • HOME
  • TAGS

Detect objects on a white background in Python

python,image,algorithm,mahotas

If the shadow is not a problem You can label the images in mahotas (http://mahotas.readthedocs.org/en/latest/labeled.html) given this binary image. You can also use skimage.morphology (which uses ndlabel as was mentioned in comments). http://scikit-image.org/docs/dev/auto_examples/plot_label.html These are examples of connect-component algorithms and are standard in any general image processing package. ImageJ also...