Warning: session_start(): open(/var/lib/php/sessions/sess_84fu21c4fbvk9gh3knflj6h17e, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static BWIntegralImage blendBWIntegralImages(Cl images) {
if (empty(images)) null;
var img1 = first(images);
int nImages = l(images);
int w = img1.getWidth(), h = img1.getHeight(), n = w*h;
double[] pixels = new[w*h];
for (var img : images) {
int i = 0;
for y to h:
for x to w:
pixels[i++] += img.getPixel(x, y);
}
byte[] bytes = new[n];
double inv = 1.0/nImages;
for i to n: bytes[i] = clampToUByte(iround(pixels[i]*inv));
ret new BWIntegralImage(BWImage(w, h, bytes));
}