!7 p-exp { BWImage bw = new(200, 100, 0f); bwFillWhiteRect(bw, 30, 40, 80, 35); final BWIntegralImage ii = new(bw); showImage(bw); int w = ii.getWidth(), h = ii.getHeight(); for (int y = 0; y < h; y += 5) { for (int x = 0; x < w; x += 5) print_noNewLine(bwIntegralImage_whiteRectWithBlackBorder_perPixel(ii, x, y, x+30, y+30, 2, 2) + " "); print(); } print(highestByFunction(ptGrid(0, 0, w, h, 5, 5), func(Pt p) { bwIntegralImage_whiteRectWithBlackBorder(ii, p.x, p.y, p.x+30, p.y+30, 2, 2) })); }