Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
013fa54a
Commit
013fa54a
authored
7 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
ENH: allow to access the splitter
parent
3fde3d39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!33
Multi writer
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/Core/Streaming/include/otbStreamingManager.h
+3
-1
3 additions, 1 deletion
Modules/Core/Streaming/include/otbStreamingManager.h
Modules/Core/Streaming/include/otbStreamingManager.txx
+7
-0
7 additions, 0 deletions
Modules/Core/Streaming/include/otbStreamingManager.txx
with
10 additions
and
1 deletion
Modules/Core/Streaming/include/otbStreamingManager.h
+
3
−
1
View file @
013fa54a
...
...
@@ -67,6 +67,7 @@ public:
typedef
typename
ImageType
::
InternalPixelType
PixelType
;
typedef
otb
::
PipelineMemoryPrintCalculator
::
MemoryPrintType
MemoryPrintType
;
typedef
itk
::
ImageRegionSplitterBase
AbstractSplitterType
;
/** Type macro */
itkTypeMacro
(
StreamingManager
,
itk
::
LightObject
);
...
...
@@ -74,6 +75,8 @@ public:
/** Dimension of input image. */
itkStaticConstMacro
(
ImageDimension
,
unsigned
int
,
ImageType
::
ImageDimension
);
const
AbstractSplitterType
*
GetSplitter
()
const
;
/** Actually computes the stream divisions, according to the specified streaming mode,
* eventually using the input parameter to estimate memory consumption */
virtual
void
PrepareStreaming
(
itk
::
DataObject
*
input
,
const
RegionType
&
region
)
=
0
;
...
...
@@ -103,7 +106,6 @@ protected:
RegionType
m_Region
;
/** The splitter used to compute the different strips */
typedef
itk
::
ImageRegionSplitterBase
AbstractSplitterType
;
typedef
typename
AbstractSplitterType
::
Pointer
AbstractSplitterPointerType
;
AbstractSplitterPointerType
m_Splitter
;
...
...
This diff is collapsed.
Click to expand it.
Modules/Core/Streaming/include/otbStreamingManager.txx
+
7
−
0
View file @
013fa54a
...
...
@@ -39,6 +39,13 @@ StreamingManager<TImage>::~StreamingManager()
{
}
template <class TImage>
const typename StreamingManager<TImage>::AbstractSplitterType *
StreamingManager<TImage>::GetSplitter() const
{
return m_Splitter;
}
template <class TImage>
typename StreamingManager<TImage>::MemoryPrintType
StreamingManager<TImage>::GetActualAvailableRAMInBytes(MemoryPrintType availableRAMInMB)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment