Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Lozac'h Loic
otbtf
Commits
de2c2b11
Commit
de2c2b11
authored
Mar 05, 2019
by
Cresson Remi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: sampler preserve physical spacing in output patches
parent
9dfd7ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
include/otbTensorflowSampler.hxx
include/otbTensorflowSampler.hxx
+1
-0
No files found.
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