Warning: session_start(): open(/var/lib/php/sessions/sess_go4eqi6acdr8f95lkvevjvtskk, 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
sclass ScaledIBWIntegralImage implements IBWIntegralImage {
IBWIntegralImage img;
int w, h;
double factorX, factorY, areaCorrection;
*(int w, IBWIntegralImage img) {
this(w, heightForWidth(img.getWidth(), img.getHeight(), w), img);
}
*(int *w, int *h, IBWIntegralImage *img) {
h = heightForWidth(img.getWidth(), img.getHeight(), w);
int w1 = img.getWidth(), h1 = img.getHeight();
factorX = doubleRatio(w1, w);
factorY = doubleRatio(h1, h);
areaCorrection = 1/(factorX*factorY);
}
public int getWidth() { ret w; }
public int getHeight() { ret h; }
// get value for 1 channel
// normal range [0; pixelCount*256)
// TODO: test
public dbl getIIValue(double x, double y) {
dbl val = img.getIIValue(x*factorX, y*factorY)*areaCorrection;
ifdef ScaledIBWIntegralImage_debug
print("Scaled." + formatFunctionCall getIIValue(x, y, x*factorX, y*factorY) + "=" + val);
endifdef
ret val;
}
}