Skip to content

Commit bb415db

Browse files
committed
fix cast type.
1 parent 5c04c02 commit bb415db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/photometric_calib/src/GammaRemover.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ GammaRemover::GammaRemover(const std::string &gammaPath, int w_, int h_)
3535
}
3636
float min = GInv[0];
3737
float max = GInv[255];
38-
for(int i=0;i<256;i++) GInv[i] = 255.0 * (GInv[i] - min) / (max-min);
38+
for(int i=0;i<256;i++) GInv[i] = (float) (255.0 * (GInv[i] - min) / (max - min));
3939
for(int i=1;i<255;i++)
4040
{
4141
for(int s=1;s<255;s++)

0 commit comments

Comments
 (0)