Segmentation and quantification of beads in microscopy images