Commit c0adaa43 authored by Cresson Remi's avatar Cresson Remi
Browse files

ENH: fix bug with nodata

parent c3e496c1
......@@ -198,16 +198,16 @@ TensorflowSampler<TInputImage, TVectorData>
{
PixelType pix = it.Get();
for (unsigned int band; band < pix.Size(); band++)
std::cout << band << std::endl;
if (pix[band] == m_NodataValue)
{
std::cout << band << std::endl;
if (pix[band] == m_NodataValue)
{
hasBeenSampled = false;
break;
}
if (!hasBeenSampled)
{
break;
}
if (!hasBeenSampled)
{
break;
}
}
}
......
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