Commit 5bb7ecf8 authored by Stéphane Albert's avatar Stéphane Albert

BUG: MANTIS-1204: Corrected gamma value sent by Ice to...

BUG: MANTIS-1204: Corrected gamma value sent by Ice to otb::VectorRescaleImageFilter to be coherent with otb::StandardShader.
parent 85a3f83d
......@@ -347,8 +347,6 @@ void GlImageActor::Render()
VectorImageType::PixelType mins(3),maxs(3),omins(3),omaxs(3);
mins.Fill(0);
maxs.Fill(255);
double gamma(1.0);
bool useNoData(false);
double noData(0.);
......@@ -363,7 +361,15 @@ void GlImageActor::Render()
maxs[ 1 ] = m_ImageSettings->GetMaxGreen();
maxs[ 2 ] = m_ImageSettings->GetMaxBlue();
gamma = m_ImageSettings->GetGamma();
// MANTIS-1204
// {
double gamma = m_ImageSettings->GetGamma();
gamma =
gamma == 0.0
? std::numeric_limits< double >::max()
: 1.0 / gamma;
// }
if( m_ImageSettings->GetUseNoData() )
noData = m_ImageSettings->GetNoData();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment