ITK  4.6.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 StreamingImageFilter:public ImageToImageFilter< TInputImage, TOutputImage >
45 {
46 public:
52 
54  itkNewMacro(Self);
55 
58 
60  typedef TInputImage InputImageType;
61  typedef typename InputImageType::Pointer InputImagePointer;
62  typedef typename InputImageType::RegionType InputImageRegionType;
63  typedef typename InputImageType::PixelType InputImagePixelType;
64 
65  typedef TOutputImage OutputImageType;
66  typedef typename OutputImageType::Pointer OutputImagePointer;
67  typedef typename OutputImageType::RegionType OutputImageRegionType;
68  typedef typename OutputImageType::PixelType OutputImagePixelType;
70 
72  itkStaticConstMacro(InputImageDimension, unsigned int,
73  InputImageType::ImageDimension);
74  itkStaticConstMacro(OutputImageDimension, unsigned int,
75  OutputImageType::ImageDimension);
77 
81 
84  itkSetMacro(NumberOfStreamDivisions, unsigned int);
85 
88  itkGetConstReferenceMacro(NumberOfStreamDivisions, unsigned int);
89 
91  itkSetObjectMacro(RegionSplitter, SplitterType);
92  itkGetModifiableObjectMacro(RegionSplitter, SplitterType);
94 
100  virtual void UpdateOutputData(DataObject *output);
101 
106  virtual void PropagateRequestedRegion(DataObject *output);
107 
108 #ifdef ITK_USE_CONCEPT_CHECKING
109  // Begin concept checking
110  itkConceptMacro( SameDimensionCheck,
112  itkConceptMacro( InputConvertibleToOutputCheck,
114  // End concept checking
115 #endif
116 
117 protected:
120  void PrintSelf(std::ostream & os, Indent indent) const;
121 
122 private:
123  StreamingImageFilter(const StreamingImageFilter &); //purposely not
124  // implemented
125  void operator=(const StreamingImageFilter &); //purposely not
126 
127  // implemented
128 
131 };
132 } // end namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkStreamingImageFilter.hxx"
136 #endif
137 
138 #endif
virtual void UpdateOutputData(DataObject *output)
void operator=(const StreamingImageFilter &)
OutputImageType::RegionType OutputImageRegionType
InputImageType::Pointer InputImagePointer
Pipeline object to control data streaming for large data processing.
ImageRegionSplitterBase SplitterType
Superclass::DataObjectPointer DataObjectPointer
Base class for all process objects that output image data.
SplitterType::Pointer RegionSplitterPointer
virtual void PropagateRequestedRegion(DataObject *output)
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Divide an image region into several pieces.
OutputImageType::PixelType OutputImagePixelType
RegionSplitterPointer m_RegionSplitter
void PrintSelf(std::ostream &os, Indent indent) const
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
InputImageType::PixelType InputImagePixelType
static const unsigned int OutputImageDimension
SmartPointer< const Self > ConstPointer
OutputImageType::Pointer OutputImagePointer
static const unsigned int InputImageDimension
InputImageType::RegionType InputImageRegionType
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.