ITK  5.4.0
Insight Toolkit
itkLaplacianRecursiveGaussianImageFilter.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  * https://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 itkLaplacianRecursiveGaussianImageFilter_h
19 #define itkLaplacianRecursiveGaussianImageFilter_h
20 
22 #include "itkImage.h"
23 #include "itkCommand.h"
24 
25 namespace itk
26 {
43 template <typename TInputImage, typename TOutputImage = TInputImage>
44 class ITK_TEMPLATE_EXPORT LaplacianRecursiveGaussianImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(LaplacianRecursiveGaussianImageFilter);
48 
54 
56  using InputImageType = TInputImage;
57  using PixelType = typename InputImageType::PixelType;
58 
60  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
61 
62  static constexpr unsigned int NumberOfSmoothingFilters = ImageDimension - 1;
63 
65 
69  using InternalRealType = float;
71 
74 
77 
80 
83 
86 
88  using OutputImageType = TOutputImage;
89  using OutputPixelType = typename OutputImageType::PixelType;
90 
91 
95 
97  itkNewMacro(Self);
98 
100  itkOverrideGetNameOfClassMacro(LaplacianRecursiveGaussianImageFilter);
101 
103  void
104  SetSigma(RealType sigma);
105  RealType
106  GetSigma() const;
112  void
113  SetNormalizeAcrossScale(bool normalize);
114  itkGetConstMacro(NormalizeAcrossScale, bool);
117 protected:
119  ~LaplacianRecursiveGaussianImageFilter() override = default;
120  void
121  PrintSelf(std::ostream & os, Indent indent) const override;
122 
124  void
125  GenerateData() override;
126 
127  // Override since the filter produces the entire dataset
128  void
129  EnlargeOutputRequestedRegion(DataObject * output) override;
130 
131 private:
132  GaussianFilterPointer m_SmoothingFilters[NumberOfSmoothingFilters]{};
133  DerivativeFilterPointer m_DerivativeFilter{};
134 
136  bool m_NormalizeAcrossScale{};
137 };
138 } // end namespace itk
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 # include "itkLaplacianRecursiveGaussianImageFilter.hxx"
142 #endif
143 
144 #endif
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itk::LaplacianRecursiveGaussianImageFilter::DerivativeFilterPointer
typename DerivativeFilterType::Pointer DerivativeFilterPointer
Definition: itkLaplacianRecursiveGaussianImageFilter.h:82
itk::LaplacianRecursiveGaussianImageFilter
Computes the Laplacian of Gaussian (LoG) of an image.
Definition: itkLaplacianRecursiveGaussianImageFilter.h:44
itkRecursiveGaussianImageFilter.h
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::LaplacianRecursiveGaussianImageFilter::InternalRealType
float InternalRealType
Definition: itkLaplacianRecursiveGaussianImageFilter.h:69
itkImage.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LaplacianRecursiveGaussianImageFilter::GaussianFilterPointer
typename GaussianFilterType::Pointer GaussianFilterPointer
Definition: itkLaplacianRecursiveGaussianImageFilter.h:79
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::LaplacianRecursiveGaussianImageFilter::PixelType
typename InputImageType::PixelType PixelType
Definition: itkLaplacianRecursiveGaussianImageFilter.h:57
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::LaplacianRecursiveGaussianImageFilter::CommandPointer
typename CommandType::Pointer CommandPointer
Definition: itkLaplacianRecursiveGaussianImageFilter.h:94
itk::NumericTraits
Define additional traits for native types such as int or float.
Definition: itkNumericTraits.h:59
itk::MemberCommand
A Command subclass that calls a pointer to a member function.
Definition: itkCommand.h:86
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:139
itk::LaplacianRecursiveGaussianImageFilter::RealType
typename NumericTraits< PixelType >::RealType RealType
Definition: itkLaplacianRecursiveGaussianImageFilter.h:64
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:88
itk::RecursiveGaussianImageFilter
Base class for computing IIR convolution with an approximation of a Gaussian kernel.
Definition: itkRecursiveGaussianImageFilter.h:100
itk::LaplacianRecursiveGaussianImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkLaplacianRecursiveGaussianImageFilter.h:89
itkCommand.h
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293