ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkBinomialBlurImageFilter.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 itkBinomialBlurImageFilter_h
19 #define itkBinomialBlurImageFilter_h
20 
21 #include "itkImageFunction.h"
22 #include "itkImageRegionIterator.h"
23 #include "itkImageToImageFilter.h"
24 #include "itkSize.h"
25 
26 namespace itk
27 {
42 template< typename TInputImage, typename TOutputImage >
44  public ImageToImageFilter< TInputImage, TOutputImage >
45 {
46 public:
52 
54  itkNewMacro(Self);
55 
58 
60  itkStaticConstMacro(NDimensions, unsigned int, TInputImage::ImageDimension);
61  itkStaticConstMacro(NOutputDimensions, unsigned int, TOutputImage::ImageDimension);
63 
65  typedef TInputImage InputImageType;
66  typedef TOutputImage OutputImageType;
67  typedef typename OutputImageType::Pointer OutputImagePointer;
68  typedef typename InputImageType::Pointer InputImagePointer;
69  typedef typename InputImageType::ConstPointer InputImageConstPointer;
70 
73 
75  typedef typename TOutputImage::IndexType IndexType;
76 
78  typedef typename TOutputImage::PixelType PixelType;
79 
81  typedef typename TOutputImage::RegionType OutputImageRegionType;
82 
84  itkSetMacro(Repetitions, unsigned int);
85  itkGetConstMacro(Repetitions, unsigned int);
87 
92  void GenerateInputRequestedRegion() ITK_OVERRIDE;
93 
94 #ifdef ITK_USE_CONCEPT_CHECKING
95  // Begin concept checking
96  itkConceptMacro( SameDimensionCheck,
97  ( Concept::SameDimension< itkGetStaticConstMacro(NDimensions),
98  itkGetStaticConstMacro(NOutputDimensions) > ) );
99  itkConceptMacro( InputConvertibleToDoubleCheck,
101  itkConceptMacro( DoubleConvertibleToOutputCheck,
103  // End concept checking
104 #endif
105 
106 protected:
109  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
110 
112  void GenerateData() ITK_OVERRIDE;
113 
114 private:
115  BinomialBlurImageFilter(const Self &) ITK_DELETE_FUNCTION;
116  void operator=(const Self &) ITK_DELETE_FUNCTION;
117 
119  unsigned int m_Repetitions;
120 };
121 } // end namespace itk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkBinomialBlurImageFilter.hxx"
125 #endif
126 
127 #endif
void GenerateInputRequestedRegion() override
Size< itkGetStaticConstMacro(NDimensions) > SizeType
Represent the size (bounds) of a n-dimensional image.
Definition: itkSize.h:52
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void GenerateData() override
Base class for all process objects that output image data.
static const unsigned int NDimensions
TOutputImage::RegionType OutputImageRegionType
InputImageType::Pointer InputImagePointer
static const unsigned int NOutputDimensions
Performs a separable blur on each dimension of an image.
Base class for filters that take an image as input and produce an image as output.
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
OutputImageType::Pointer OutputImagePointer
InputImageType::ConstPointer InputImageConstPointer