Biofilms are surface-attached microbial communities whose architecture can be captured with confocal microscopy. Manual or automatic thresholding of acquired images is often needed to help distinguish ...