Skip to content

Commit

Permalink
bracket change may be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor committed Sep 30, 2024
1 parent 82bcb74 commit f625b25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/aliceVision/hdr/brackets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,16 @@ std::vector<std::vector<LuminanceInfo>> splitMonotonics(const std::vector<Lumina
float val = luminanceInfos[index].mexposure;
float prev = luminanceInfos[index - 1].mexposure;


if (val == prev)
{
splitted.push_back(current);

current.clear();
current.push_back(luminanceInfos[index]);
continue;
}

if (index + 1 == luminanceInfos.size())
{
current.push_back(luminanceInfos[index]);
Expand Down

0 comments on commit f625b25

Please sign in to comment.