ITK  5.2.0
Insight Toolkit
itkBinomialBlurImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 {
43 template <typename TInputImage, typename TOutputImage>
44 class ITK_TEMPLATE_EXPORT BinomialBlurImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(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
94  GenerateInputRequestedRegion() override;
95 
96 #ifdef ITK_USE_CONCEPT_CHECKING
97  // Begin concept checking
100  itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, PixelType>));
101  // End concept checking
102 #endif
103 
104 protected:
106  ~BinomialBlurImageFilter() override = default;
107  void
108  PrintSelf(std::ostream & os, Indent indent) const override;
109 
111  void
112  GenerateData() override;
113 
114 private:
116  unsigned int m_Repetitions;
117 };
118 } // end namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 # include "itkBinomialBlurImageFilter.hxx"
122 #endif
123 
124 #endif
itkImageFunction.h
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::Size
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition: itkSize.h:69
itk::BinomialBlurImageFilter
Performs a separable blur on each dimension of an image.
Definition: itkBinomialBlurImageFilter.h:44
itk::BinomialBlurImageFilter::m_Repetitions
unsigned int m_Repetitions
Definition: itkBinomialBlurImageFilter.h:116
itk::SmartPointer< Self >
itkImageRegionIterator.h
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::Concept::SameDimension
Definition: itkConceptChecking.h:692
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::BinomialBlurImageFilter::IndexType
typename TOutputImage::IndexType IndexType
Definition: itkBinomialBlurImageFilter.h:76
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:64
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::Concept::Convertible
Definition: itkConceptChecking.h:214
itk::BinomialBlurImageFilter::PixelType
typename TOutputImage::PixelType PixelType
Definition: itkBinomialBlurImageFilter.h:79
itk::ImageToImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToImageFilter.h:131
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itkSize.h