ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkProjectionImageFilter.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 itkProjectionImageFilter_h
19 #define itkProjectionImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
53 template< typename TInputImage, typename TOutputImage, typename TAccumulator >
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 {
57 public:
63 
65  itkNewMacro(Self);
66 
69 
71  typedef TInputImage InputImageType;
72  typedef typename InputImageType::Pointer InputImagePointer;
73  typedef typename InputImageType::RegionType InputImageRegionType;
74  typedef typename InputImageType::PixelType InputImagePixelType;
75  typedef TOutputImage OutputImageType;
76  typedef typename OutputImageType::Pointer OutputImagePointer;
77  typedef typename OutputImageType::RegionType OutputImageRegionType;
78  typedef typename OutputImageType::PixelType OutputImagePixelType;
79 
80  typedef TAccumulator AccumulatorType;
81 
83  itkStaticConstMacro(InputImageDimension, unsigned int,
84  TInputImage::ImageDimension);
85  itkStaticConstMacro(OutputImageDimension, unsigned int,
86  TOutputImage::ImageDimension);
88 
91 #ifdef ITK_USE_CONCEPT_CHECKING
92  // Begin concept checking
93  itkConceptMacro( ImageDimensionCheck,
95  itkGetStaticConstMacro(InputImageDimension),
96  itkGetStaticConstMacro(OutputImageDimension) > ) );
97  // End concept checking
98 #endif
99 
102  itkSetMacro(ProjectionDimension, unsigned int);
103  itkGetConstReferenceMacro(ProjectionDimension, unsigned int);
105 
106 protected:
109  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
110 
112  virtual void GenerateOutputInformation() ITK_OVERRIDE;
113 
115  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
116 
117  virtual void ThreadedGenerateData(
118  const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE;
119 
121 
122 private:
123  ProjectionImageFilter(const Self &) ITK_DELETE_FUNCTION;
124  void operator=(const Self &) ITK_DELETE_FUNCTION;
125 
126  unsigned int m_ProjectionDimension;
127 };
128 } // end namespace itk
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkProjectionImageFilter.hxx"
132 #endif
133 
134 #endif
Base class for all process objects that output image data.
InputImageType::RegionType InputImageRegionType
virtual void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
unsigned long SizeValueType
Definition: itkIntTypes.h:143
Implements an accumulation of an image along a selected direction.
static const unsigned int OutputImageDimension
virtual void GenerateOutputInformation() override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual AccumulatorType NewAccumulator(SizeValueType) const
virtual void GenerateInputRequestedRegion() override
SmartPointer< const Self > ConstPointer
InputImageType::PixelType InputImagePixelType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Base class for filters that take an image as input and produce an image as output.
OutputImageType::PixelType OutputImagePixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
InputImageType::Pointer InputImagePointer
static const unsigned int InputImageDimension
OutputImageType::RegionType OutputImageRegionType
OutputImageType::Pointer OutputImagePointer