ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkStreamingImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkStreamingImageFilter_h
19 #define itkStreamingImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
43 template< typename TInputImage, typename TOutputImage >
44 class ITK_TEMPLATE_EXPORT StreamingImageFilter:public ImageToImageFilter< TInputImage, TOutputImage >
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_ASSIGN(StreamingImageFilter);
48 
54 
56  itkNewMacro(Self);
57 
60 
62  using InputImageType = TInputImage;
63  using InputImagePointer = typename InputImageType::Pointer;
65  using InputImagePixelType = typename InputImageType::PixelType;
66 
67  using OutputImageType = TOutputImage;
68  using OutputImagePointer = typename OutputImageType::Pointer;
70  using OutputImagePixelType = typename OutputImageType::PixelType;
72 
74  static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
75  static constexpr unsigned int OutputImageDimension = OutputImageType::ImageDimension;
76 
80 
83  itkSetMacro(NumberOfStreamDivisions, unsigned int);
84 
87  itkGetConstReferenceMacro(NumberOfStreamDivisions, unsigned int);
88 
90  itkSetObjectMacro(RegionSplitter, SplitterType);
91  itkGetModifiableObjectMacro(RegionSplitter, SplitterType);
93 
99  void UpdateOutputData(DataObject *output) override;
100 
105  void PropagateRequestedRegion(DataObject *output) override;
106 
107 #ifdef ITK_USE_CONCEPT_CHECKING
108  // Begin concept checking
109  itkConceptMacro( SameDimensionCheck,
111  itkConceptMacro( InputConvertibleToOutputCheck,
113  // End concept checking
114 #endif
115 
116 protected:
118  ~StreamingImageFilter() override = default;
119  void PrintSelf(std::ostream & os, Indent indent) const override;
120 
121 private:
124 };
125 } // end namespace itk
126 
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkStreamingImageFilter.hxx"
129 #endif
130 
131 #endif
typename OutputImageType::Pointer OutputImagePointer
Pipeline object to control data streaming for large data processing.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename SplitterType::Pointer RegionSplitterPointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Divide an image region into several pieces.
RegionSplitterPointer m_RegionSplitter
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.