Commit 1dde076b authored by Cédric Traizet's avatar Cédric Traizet

Merge branch 'change_nodata' into 'release-6.6'

ManageNoData 'change no data value' mode

See merge request orfeotoolbox/otb!111
parents 8682cda0 4b9a9a30
......@@ -80,12 +80,17 @@ public:
* - NaN values will be considered as no data and replaced as well
* - Output image will have no-data flags and values for all bands
*
* If NaNIsNoData is false:
* If NaNIsNoData is false and the input has at least one band with no-data
* flag and no-data value :
* - Band for which input no-data flags is false will remain
* untouched
* - Output image will have no-data flags and values only for bands
* for which input no-data flag is true.
*
* If NaNIsNoData is false and the input has no band with no-data
* flag and no-data value :
* - Output image will have no-data flags and values for all bands
*
* \ingroup Streamed
* \ingroup MultiThreaded
* \ingroup OTBImageManipulation
......@@ -160,7 +165,7 @@ protected:
std::vector<bool> flags = noDataValueAvailable;
if(this->GetFunctor().m_NaNIsNoData)
if((this->GetFunctor().m_NaNIsNoData) || (!ret))
{
flags = std::vector<bool>(flags.size(),true);
}
......
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