Skip to content

Commit

Permalink
Fix value to be used when using GAMMA_LOG_BASED method.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-trinh committed Oct 18, 2024
1 parent a88f91c commit f6fb035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/imgproc/src/vpImgproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void gammaCorrectionLogMethod(vpImage<unsigned char> &I, const vpImage<bool> *p_
unsigned char inputRange = inputMax - inputMin;

float gamma_computed = static_cast<float>((std::log(128.f) - std::log(256.f)) / (std::log(mean) - std::log(inputRange)));
float inverse_gamma = 1.f / gamma_computed;
float inverse_gamma = gamma_computed;

// Construct the look-up table
unsigned char lut[256];
Expand Down

0 comments on commit f6fb035

Please sign in to comment.