Skip to content
Snippets Groups Projects
Commit 1dde076b authored by Cédric Traizet's avatar Cédric Traizet
Browse files

Merge branch 'change_nodata' into 'release-6.6'

ManageNoData 'change no data value' mode

See merge request !111
parents 8682cda0 4b9a9a30
No related branches found
No related tags found
1 merge request!111ManageNoData 'change no data value' mode
......@@ -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);
}
......
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