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
Cresson Remi
otbtf
Commits
de2c2b11
Commit
de2c2b11
authored
Mar 05, 2019
by
Cresson Remi
Browse files
ENH: sampler preserve physical spacing in output patches
parent
9dfd7ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/otbTensorflowSampler.hxx
View file @
de2c2b11
...
@@ -145,6 +145,7 @@ TensorflowSampler<TInputImage, TVectorData>
...
@@ -145,6 +145,7 @@ TensorflowSampler<TInputImage, TVectorData>
{
{
ImagePointerType
newImage
;
ImagePointerType
newImage
;
AllocateImage
(
newImage
,
m_PatchSizes
[
i
],
nTotal
,
GetInput
(
i
)
->
GetNumberOfComponentsPerPixel
());
AllocateImage
(
newImage
,
m_PatchSizes
[
i
],
nTotal
,
GetInput
(
i
)
->
GetNumberOfComponentsPerPixel
());
newImage
->
SetSignedSpacing
(
this
->
GetInput
(
i
)
->
GetSignedSpacing
());
m_OutputPatchImages
.
push_back
(
newImage
);
m_OutputPatchImages
.
push_back
(
newImage
);
}
}
...
...
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