Add thresholding to the ellipse fitter