709.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 7d1f69aa5b5ab4982abadf0f13531d210f8f0f17 Mon Sep 17 00:00:00 2001
  2. From: bartoszek <bartoszek.github@bartus.33mail.com>
  3. Date: Tue, 22 Oct 2019 23:11:12 +0200
  4. Subject: [PATCH] Fix offset logging against boost 1.71
  5. ---
  6. src/software/convert/main_convertLDRToHDR.cpp | 7 ++++---
  7. 1 file changed, 4 insertions(+), 3 deletions(-)
  8. diff --git a/src/software/convert/main_convertLDRToHDR.cpp b/src/software/convert/main_convertLDRToHDR.cpp
  9. index 68204b615..7b60f90b9 100644
  10. --- a/src/software/convert/main_convertLDRToHDR.cpp
  11. +++ b/src/software/convert/main_convertLDRToHDR.cpp
  12. @@ -20,6 +20,7 @@
  13. #include <algorithm>
  14. #include <string>
  15. +#include <sstream>
  16. #include <regex>
  17. // These constants define the current software version.
  18. @@ -285,10 +286,10 @@ void recoverSourceImage(const image::Image<image::RGBfColor>& hdrImage, hdr::rgb
  19. }
  20. meanRecovered[channel] /= hdrImage.size();
  21. }
  22. - float offset[3];
  23. + std::stringstream offsets;
  24. for(int i=0; i<3; ++i)
  25. - offset[i] = std::abs(meanRecovered[i] - meanVal[i]);
  26. - ALICEVISION_LOG_INFO("Offset between target source image and recovered from hdr = " << offset);
  27. + offsets << std::abs(meanRecovered[i] - meanVal[i]) << ' ';
  28. + ALICEVISION_LOG_INFO("Offset between target source image and recovered from hdr = " << offsets.str());
  29. }