Commit 94d1fc58 authored by Victor Poughon's avatar Victor Poughon

Merge branch '1976-nodata-in-label-stats-filter' into 'release-7.0'

Resolve "ZonalStatistics app inbv parameter is not taken into account in stats filter"

See merge request orfeotoolbox/otb!605
parents 9f33e138 c3bbdf97
......@@ -97,8 +97,11 @@ public:
const RealValueType value = pixel[band];
const RealValueType sqValue = value * value;
UpdateValues(!m_UseNoDataValue || value != m_NoDataValue, value, sqValue, value, value, m_BandCount[band], m_Sum[band], m_SqSum[band], m_Min[band],
if(!m_UseNoDataValue || value != m_NoDataValue)
{
UpdateValues(1, value, sqValue, value, value, m_BandCount[band], m_Sum[band], m_SqSum[band], m_Min[band],
m_Max[band]);
}
}
}
......
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