return writePNG(os);
}
- double compare(Image &ref);
+ void
+ writeRAW(std::ostream &os) const;
+
+ inline bool
+ writeRAW(const char *filename) const {
+ std::ofstream os(filename, std::ofstream::binary);
+ if (!os) {
+ return false;
+ }
+ writeRAW(os);
+ return true;
+ }
};