ImageFile.threshold_minmax

ImageFile.threshold_minmax(threshmin=0.1, threshmax=0.9)

Return a boolean array which is thresholded between threshmin and threshmax.

(ie True if value is between threshmin and threshmax)