From 86e331b2f5d6578b06bbbaa68b5768e32d51d243 Mon Sep 17 00:00:00 2001 From: remi <remi.cresson@irstea.fr> Date: Tue, 29 Oct 2019 14:14:03 +0100 Subject: [PATCH] ENH: fix bug with nodata --- include/otbTensorflowSampler.hxx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/otbTensorflowSampler.hxx b/include/otbTensorflowSampler.hxx index 5cf15be..60a98b5 100644 --- a/include/otbTensorflowSampler.hxx +++ b/include/otbTensorflowSampler.hxx @@ -215,19 +215,19 @@ TensorflowSampler<TInputImage, TVectorData> } // Next input if (hasBeenSampled) { - // TODO: delete this - IndexType outIndex; - outIndex[0] = 0; - outIndex[1] = count * m_PatchSizes[0][1]; - RegionType region(outIndex, m_PatchSizes[0]); - IteratorType it(m_OutputPatchImages[0], region); - for (it.GoToBegin(); !it.IsAtEnd(); ++it) - { - PixelType pix = it.Get(); - for (unsigned int band; band < pix.Size(); band++) - if (pix[band] == m_NodataValue) - std::cout << band << std::endl; - } +// // TODO: delete this +// IndexType outIndex; +// outIndex[0] = 0; +// outIndex[1] = count * m_PatchSizes[0][1]; +// RegionType region(outIndex, m_PatchSizes[0]); +// IteratorType it(m_OutputPatchImages[0], region); +// for (it.GoToBegin(); !it.IsAtEnd(); ++it) +// { +// PixelType pix = it.Get(); +// for (unsigned int band; band < pix.Size(); band++) +// if (pix[band] == m_NodataValue) +// std::cout << band << std::endl; +// } // Fill label labelIndex[1] = count; -- GitLab