Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Lozac'h Loic
otbtf
Commits
c9442e62
Commit
c9442e62
authored
Sep 22, 2018
by
Cresson Remi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: bufferedRegion instead of regions used in allocation
parent
78ce0cff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
include/otbTensorflowStreamerFilter.h
include/otbTensorflowStreamerFilter.h
+1
-1
include/otbTensorflowStreamerFilter.hxx
include/otbTensorflowStreamerFilter.hxx
+1
-14
No files found.
include/otbTensorflowStreamerFilter.h
View file @
c9442e62
...
...
@@ -59,7 +59,7 @@ protected:
TensorflowStreamerFilter
();
virtual
~
TensorflowStreamerFilter
()
{};
virtual
void
GenerateInputRequestedRegion
(
void
);
virtual
void
UpdateOutputData
(
itk
::
DataObject
*
output
){(
void
)
output
;
this
->
GenerateData
();}
virtual
void
GenerateData
();
...
...
include/otbTensorflowStreamerFilter.hxx
View file @
c9442e62
...
...
@@ -24,18 +24,6 @@ TensorflowStreamerFilter<TInputImage, TOutputImage>
m_OutputGridSize
.
Fill
(
1
);
}
template
<
class
TInputImage
,
class
TOutputImage
>
void
TensorflowStreamerFilter
<
TInputImage
,
TOutputImage
>
::
GenerateInputRequestedRegion
()
{
// We intentionally break the pipeline
ImageType
*
inputImage
=
static_cast
<
ImageType
*
>
(
Superclass
::
ProcessObject
::
GetInput
(
0
)
);
RegionType
nullRegion
;
inputImage
->
SetRequestedRegion
(
nullRegion
);
}
/**
* Compute the output image
*/
...
...
@@ -47,7 +35,7 @@ TensorflowStreamerFilter<TInputImage, TOutputImage>
// Output pointer and requested region
OutputImageType
*
outputPtr
=
this
->
GetOutput
();
const
RegionType
outputReqRegion
=
outputPtr
->
GetRequestedRegion
();
outputPtr
->
SetRegion
s
(
outputReqRegion
);
outputPtr
->
Set
Buffered
Region
(
outputReqRegion
);
outputPtr
->
Allocate
();
// Compute the aligned region
...
...
@@ -106,7 +94,6 @@ TensorflowStreamerFilter<TInputImage, TOutputImage>
progress
.
CompletedPixel
();
}
}
}
...
...
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