ITK  4.3.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< class TInputImage, class TOutputImage >
43 class ITK_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 
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();
93 
94 #ifdef ITK_USE_CONCEPT_CHECKING
95 
96  itkConceptMacro( SameDimensionCheck,
97  ( Concept::SameDimension< itkGetStaticConstMacro(NDimensions),
98  itkGetStaticConstMacro(NOutputDimensions) > ) );
99  itkConceptMacro( InputConvertibleToDoubleCheck,
101  itkConceptMacro( DoubleConvertibleToOutputCheck,
103 
105 #endif
106 
107 protected:
110  void PrintSelf(std::ostream & os, Indent indent) const;
111 
113  void GenerateData();
114 
115 private:
116  BinomialBlurImageFilter(const Self &); //purposely not implemented
117  void operator=(const Self &); //purposely not implemented
118 
120  unsigned int m_Repetitions;
121 };
122 } // end namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkBinomialBlurImageFilter.hxx"
126 #endif
127 
128 #endif
129