Report entropy when compressing a texture.

This commit is contained in:
Pavel Krajcevski 2013-10-18 04:12:49 -04:00
parent f597ec2f77
commit 22246810d6

View file

@ -226,6 +226,9 @@ int main(int argc, char **argv) {
img.SetBlockStreamOrder(false);
}
fprintf(stdout, "Entropy: %.5f\n", img.ComputeEntropy());
fprintf(stdout, "Mean Local Entropy: %.5f\n", img.ComputeMeanLocalEntropy());
std::ofstream logFile;
ThreadSafeStreambuf streamBuf(logFile);
std::ostream logStream(&streamBuf);