ITK  4.13.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 >
43 class ITK_TEMPLATE_EXPORT BinomialBlurImageFilter:
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 
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:
108  virtual ~BinomialBlurImageFilter() ITK_OVERRIDE {}
109  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
110 
112  void GenerateData() ITK_OVERRIDE;
113 
114 private:
115  ITK_DISALLOW_COPY_AND_ASSIGN(BinomialBlurImageFilter);
116 
118  unsigned int m_Repetitions;
119 };
120 } // end namespace itk
121 
122 #ifndef ITK_MANUAL_INSTANTIATION
123 #include "itkBinomialBlurImageFilter.hxx"
124 #endif
125 
126 #endif
Size< itkGetStaticConstMacro(NDimensions) > SizeType
Represent the size (bounds) of a n-dimensional image.
Definition: itkSize.h:52
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Base class for all process objects that output image data.
TOutputImage::RegionType OutputImageRegionType
InputImageType::Pointer InputImagePointer
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