ITK  4.2.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"
22 #include "itkImageRegionSplitter.h"
23 
24 namespace itk
25 {
43 template< class TInputImage, class TOutputImage >
44 class ITK_EXPORT 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 
82 
85  itkSetMacro(NumberOfStreamDivisions, unsigned int);
86 
89  itkGetConstReferenceMacro(NumberOfStreamDivisions, unsigned int);
90 
92  itkSetObjectMacro(RegionSplitter, SplitterType);
93 
95  itkGetObjectMacro(RegionSplitter, SplitterType);
96 
102  virtual void UpdateOutputData(DataObject *output);
103 
108  virtual void PropagateRequestedRegion(DataObject *output);
109 
110 #ifdef ITK_USE_CONCEPT_CHECKING
111 
112  itkConceptMacro( SameDimensionCheck,
114  itkConceptMacro( InputConvertibleToOutputCheck,
116 
118 #endif
119 protected:
122  void PrintSelf(std::ostream & os, Indent indent) const;
124 
125 private:
126  StreamingImageFilter(const StreamingImageFilter &); //purposely not
127  // implemented
128  void operator=(const StreamingImageFilter &); //purposely not
129 
130  // implemented
131 
134 };
135 } // end namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkStreamingImageFilter.hxx"
139 #endif
140 
141 #endif
142