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