Skip to content

Commit

Permalink
fix: support colored gain maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Feb 25, 2025
1 parent ba5d4dc commit 1f32ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imageio/GainMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Task<void> applyAppleGainMap(ImageData& image, const ImageData& gainMap, int pri
for (int x = 0; x < size.x(); ++x) {
size_t i = y * (size_t)size.x() + x;
for (int c = 0; c < 3; ++c) {
image.channels[c].at(i) *= (1.0f + (headroom - 1.0f) * gainMap.channels[0].at(i));
image.channels[c].at(i) *= (1.0f + (headroom - 1.0f) * gainMap.channels[c].at(i));
}
}
},
Expand Down

0 comments on commit 1f32ee0

Please sign in to comment.