Skip to content
Snippets Groups Projects
Commit 119b63e4 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : rounding when truncate double

parent 21bb5d72
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ public:
* m_IlluminationCorrectionCoefficient
/ m_SolarIllumination;
outPixel = static_cast<TOutput>( vcl_floor(temp*1000.)/1000.);
outPixel = static_cast<TOutput>( vcl_floor((temp+0.0005)*1000.)/1000.);
return outPixel;
}
......
......@@ -97,7 +97,7 @@ public:
temp = static_cast<double>(inPixel)*m_Coefficient + m_Residu;
temp2 = temp / (1. + m_SphericalAlbedo * temp);
outPixel = static_cast<TOutput>( vcl_floor(temp2*1000.)/1000.);
outPixel = static_cast<TOutput>( vcl_floor((temp2+0.0005)*1000.)/1000.);
return outPixel;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment