Core: Try different methods for thresholding
We currently only use flat binary thresholding, a more advanced method might extract more blobs from which to construct shapes.
Adaptive thresholding could be used to extract peaks from local low-contrast regions, and Otsu's method could be used to determine an appropriate threshold.
Edited by Zamaan Raza