I dont understand the code of the gamma correction in hog.cpp in opencv, i went through some links here which doesnt match with the code in opencv hog.cpp
Mat_<float> _lut(1, 256);
const float* lut = &_lut(0,0);
if( gammaCorrection )
for( i = 0; i < 256; i++ )
_lut(0,i) = std::sqrt((float)i);
else
for( i = 0; i < 256; i++ )
_lut(0,i) = (float)i;
All i understood from the code is it creates 2 dimensional array of 1x256, if gamma correction is true it will calculate the square root of data.I tried to debug going through all the files related to this code but dint understood. Can anyone briefly tell whats happening here.
Please help
Thanks in advance.