static Image2B imageToBinary(BWImage img, int threshold) { ret bwImageToBinary(img, threshold); }