From 8c9baaf6ab9d345f4968f9a258fc792399e86237 Mon Sep 17 00:00:00 2001 From: Fabien Servant Date: Tue, 18 Apr 2023 15:39:47 +0200 Subject: [PATCH] fix error when using jpg in hdr sampling --- src/aliceVision/image/io.cpp | 2 +- src/software/pipeline/main_LdrToHdrSampling.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aliceVision/image/io.cpp b/src/aliceVision/image/io.cpp index 3f58a16154..7986daf815 100644 --- a/src/aliceVision/image/io.cpp +++ b/src/aliceVision/image/io.cpp @@ -279,7 +279,7 @@ ERawColorInterpretation ERawColorInterpretation_stringToEnum(const std::string& std::string type = rawColorInterpretation; std::transform(type.begin(), type.end(), type.begin(), ::tolower); //tolower - if (type == "none") + if (type == "none" || type == "") return ERawColorInterpretation::None; if (type == "librawnowhitebalancing") return ERawColorInterpretation::LibRawNoWhiteBalancing; diff --git a/src/software/pipeline/main_LdrToHdrSampling.cpp b/src/software/pipeline/main_LdrToHdrSampling.cpp index be493a667b..8522892bb4 100644 --- a/src/software/pipeline/main_LdrToHdrSampling.cpp +++ b/src/software/pipeline/main_LdrToHdrSampling.cpp @@ -211,7 +211,7 @@ int aliceVision_main(int argc, char** argv) rawColorInterpretation = image::ERawColorInterpretation_stringToEnum(rawColorInterpretation_str); colorProfileFileName = v->getColorProfileFileName(); - ALICEVISION_LOG_INFO("Image: " << paths.back() << ", exposure: " << exposuresSetting.back() << ", raw color interpretation: " << rawColorInterpretation_str); + ALICEVISION_LOG_INFO("Image: " << paths.back() << ", exposure: " << exposuresSetting.back() << ", raw color interpretation: " << ERawColorInterpretation_enumToString(rawColorInterpretation)); } if(!sfmData::hasComparableExposures(exposuresSetting)) {