Skip to content

Commit

Permalink
Merge pull request #1420 from alicevision/dev/jpgError
Browse files Browse the repository at this point in the history
fix error when using jpg in hdr sampling
  • Loading branch information
fabiencastan authored Apr 18, 2023
2 parents fd93e88 + 8c9baaf commit e29b1ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aliceVision/image/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/software/pipeline/main_LdrToHdrSampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit e29b1ce

Please sign in to comment.