From 22246810d67bc31f8f742d9cabb9ce582a4a0a31 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Fri, 18 Oct 2013 04:12:49 -0400 Subject: [PATCH] Report entropy when compressing a texture. --- CLTool/src/clunix.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLTool/src/clunix.cpp b/CLTool/src/clunix.cpp index 5df3ac6..7f5dd68 100644 --- a/CLTool/src/clunix.cpp +++ b/CLTool/src/clunix.cpp @@ -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);