Warning: session_start(): open(/var/lib/php/sessions/sess_bh3ins5phst0euvc5fq6hs3sao, 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
// an indexing structure for grayscale images
// -all images have the same size
// -images are sorted by
// 1. average brightness
// 2. "lexical" scanline ordering (within same brightness)
// -every image can have an arbitrary value associated (type "A")
sclass ScaledGrayscaleCache extends Meta is WidthAndHeight {
int w, h;
new TreeSet entries;
class Entry is Comparable {
double brightness;
BWImage image;
A value;
public int compareTo(Entry e) {
if (brightness != e.brightness)
ret cmp(brightness, e.brightness);
ret compareBWImagesByScanlineOrdering(image, e.image);
}
}
*(int *w, int *h) {}
public int getWidth() { ret w; }
public int getHeight() { ret h; }
}