Commit f4ff104c authored by Cresson Remi's avatar Cresson Remi

ENH: expose tiling layout (tile hint) in output image metadata

parent a453efca
......@@ -21,6 +21,10 @@
#include "otbTensorflowDataTypeBridge.h"
#include "otbTensorflowCopyUtils.h"
// Tile hint
#include "itkMetaDataObject.h"
#include "otbMetaDataKey.h"
namespace otb
{
......
......@@ -288,6 +288,13 @@ TensorflowMultisourceModelFilter<TInputImage, TOutputImage>
m_NullPixel.SetSize(outputPtr->GetNumberOfComponentsPerPixel());
m_NullPixel.Fill(0);
//////////////////////////////////////////////////////////////////////////////////////////
// Set the tiling layout hint in metadata
//////////////////////////////////////////////////////////////////////////////////////////
itk::EncapsulateMetaData(outputPtr->GetMetaDataDictionary(), MetaDataKey::TileHintX, m_OutputGridSize[0]);
itk::EncapsulateMetaData(outputPtr->GetMetaDataDictionary(), MetaDataKey::TileHintY, m_OutputGridSize[1]);
}
template <class TInputImage, class TOutputImage>
......
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