Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
otbtf
Commits
f4ff104c
Commit
f4ff104c
authored
Sep 02, 2018
by
Cresson Remi
Browse files
ENH: expose tiling layout (tile hint) in output image metadata
parent
a453efca
Changes
2
Show whitespace changes
Inline
Side-by-side
include/otbTensorflowMultisourceModelFilter.h
View file @
f4ff104c
...
@@ -21,6 +21,10 @@
...
@@ -21,6 +21,10 @@
#include "otbTensorflowDataTypeBridge.h"
#include "otbTensorflowDataTypeBridge.h"
#include "otbTensorflowCopyUtils.h"
#include "otbTensorflowCopyUtils.h"
// Tile hint
#include "itkMetaDataObject.h"
#include "otbMetaDataKey.h"
namespace
otb
namespace
otb
{
{
...
...
include/otbTensorflowMultisourceModelFilter.hxx
View file @
f4ff104c
...
@@ -288,6 +288,13 @@ TensorflowMultisourceModelFilter<TInputImage, TOutputImage>
...
@@ -288,6 +288,13 @@ TensorflowMultisourceModelFilter<TInputImage, TOutputImage>
m_NullPixel
.
SetSize
(
outputPtr
->
GetNumberOfComponentsPerPixel
());
m_NullPixel
.
SetSize
(
outputPtr
->
GetNumberOfComponentsPerPixel
());
m_NullPixel
.
Fill
(
0
);
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
>
template
<
class
TInputImage
,
class
TOutputImage
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment