static IBWIntegralImage toIBWIntegralImage(IBWImage img) { if (img cast IBWIntegralImage) ret img; ret bwIntegralImage(img); }