Prepared for automatic canny thresholding