Warning: session_start(): open(/var/lib/php/sessions/sess_6ov90qa1jkvls213frfbp834je, 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 BWImage img_distanceFromColor_withGain(RGBImage img, RGB color, double gain) {
int w = img.getWidth(), h = img.getHeight();
int col = color.getInt();
BWImage bw = new(w, h);
for y to h:
for x to w:
bw.setPixel(x, y, rgbDiff(img.getInt(x, y), col)*(float) gain);
ret bw;
}
static BWImage img_distanceFromColor_withGain(BufferedImage img, RGB color, double gain) {
int w = img.getWidth(), h = img.getHeight();
int col = color.getInt();
BWImage bw = new(w, h);
for y to h:
for x to w:
bw.setPixel(x, y, rgbDiff(img.getRGB(x, y), col)*(float) gain);
ret bw;
}
static BWImage img_distanceFromColor_withGain(double gain, BufferedImage img, RGB color) {
ret img_distanceFromColor_withGain(img, color, gain);
}