) const
{
if (size_A == size_B && memcmp (data_A, data_B, size_A) == 0) {
+ note (NOTE, "J2K identical");
/* Easy result; the J2K data is identical */
return true;
}
note (ERROR, "mean or standard deviation out of range for " + lexical_cast<string>(frame));
return false;
}
+
+ note (NOTE, "mean difference " + lexical_cast<string> (mean) + ", deviation " + lexical_cast<string> (std_dev));
opj_image_destroy (image_A);
opj_image_destroy (image_B);
void
note (NoteType t, string n)
{
- if (t == ERROR || (t == PROGRESS && verbose)) {
+ if (t == ERROR || verbose) {
cout << " " << n << "\n";
}
}