static BufferedImage integralImageToBufferedImage(IntegralImage img) { if (img == null) null; int w = img.w, h = img.h; BufferedImage out = newBufferedImage(w, h); for y to h: for x to w: out.setRGB(x, y, ii_getPixel(img, x, y)); ret out; } static BufferedImage integralImageToBufferedImage(IIntegralImage img) { if (img == null) null; int w = img.w, h = img.h; BufferedImage out = newBufferedImage(w, h); for y to h: for x to w: out.setRGB(x, y, rgbInt( iround(img.getPixel(x, y, 0)), iround(img.getPixel(x, y, 1)), iround(img.getPixel(x, y, 2)) )); ret out; }