Fit ellipses in the given image; Slider bar to set thresholds