Skip to content
Snippets Groups Projects
Commit d8bdb979 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: wrong nan detection with otb::Image type

parent 1494ffc0
No related branches found
No related tags found
No related merge requests found
......@@ -61,18 +61,7 @@ template<typename T> bool IsNoData(const T & pixel, const
assert(flags.size()>0);
assert(values.size()>0);
if(nanIsNoData && vnl_math_isnan(values[0]))
return true;
if(flags[0])
{
return (pixel == values[0]);
}
else
{
return false;
}
return ((nanIsNoData && vnl_math_isnan(pixel)) || (flags[0] && (pixel == values[0])))
}
/**
......
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