Fix isodata-thresholding according to Zachary Pincus

`float or int or array`, or, `float, int, or array`.