static BWImage scaledBWImageFromBWIntegralImage(int w, IBWIntegralImage img) { ret scaledBWImageFromBWIntegralImage(img, w); } static BWImage scaledBWImageFromBWIntegralImage(IBWIntegralImage img, int w, int h default heightForWidth(img, w)) { ScaledBWImageFromBWIntegralImage op = new(img, w, h); op.run(); ret op.result; } static BWImage scaledBWImageFromBWIntegralImage(int w, int h, IBWImage img) { ret scaledBWImageFromBWIntegralImage(w, h, toIBWIntegralImage(img)); }