ITK  5.0.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:
47  ITK_DISALLOW_COPY_AND_ASSIGN(BinomialBlurImageFilter);
48 
54 
56  itkNewMacro(Self);
57 
60 
62  static constexpr unsigned int NDimensions = TInputImage::ImageDimension;
63  static constexpr unsigned int NOutputDimensions = TOutputImage::ImageDimension;
64 
66  using InputImageType = TInputImage;
67  using OutputImageType = TOutputImage;
68  using OutputImagePointer = typename OutputImageType::Pointer;
69  using InputImagePointer = typename InputImageType::Pointer;
70  using InputImageConstPointer = typename InputImageType::ConstPointer;
71 
74 
77 
79  using PixelType = typename TOutputImage::PixelType;
80 
83 
85  itkSetMacro(Repetitions, unsigned int);
86  itkGetConstMacro(Repetitions, unsigned int);
88 
93  void GenerateInputRequestedRegion() override;
94 
95 #ifdef ITK_USE_CONCEPT_CHECKING
96  // Begin concept checking
97  itkConceptMacro( SameDimensionCheck,
98  ( Concept::SameDimension< Self::NDimensions,
99  Self::NOutputDimensions > ) );
100  itkConceptMacro( InputConvertibleToDoubleCheck,
102  itkConceptMacro( DoubleConvertibleToOutputCheck,
104  // End concept checking
105 #endif
106 
107 protected:
109  ~BinomialBlurImageFilter() override = default;
110  void PrintSelf(std::ostream & os, Indent indent) const override;
111 
113  void GenerateData() override;
114 
115 private:
117  unsigned int m_Repetitions;
118 };
119 } // end namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkBinomialBlurImageFilter.hxx"
123 #endif
124 
125 #endif
typename OutputImageType::Pointer OutputImagePointer
typename TOutputImage::PixelType PixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition: itkSize.h:68
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.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename TOutputImage::IndexType IndexType
#define itkConceptMacro(name, concept)
typename InputImageType::ConstPointer InputImageConstPointer