ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkHessianRecursiveGaussianImageFilter.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 itkHessianRecursiveGaussianImageFilter_h
19 #define itkHessianRecursiveGaussianImageFilter_h
20 
23 #include "itkImage.h"
25 #include "itkPixelTraits.h"
26 
27 namespace itk
28 {
41 template< typename TInputImage,
42  typename TOutputImage = Image< SymmetricSecondRankTensor<
44  TInputImage::ImageDimension >,
45  TInputImage::ImageDimension > >
46 class ITK_TEMPLATE_EXPORT HessianRecursiveGaussianImageFilter:
47  public ImageToImageFilter< TInputImage, TOutputImage >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(HessianRecursiveGaussianImageFilter);
51 
57 
59  using InputImageType = TInputImage;
60  using PixelType = typename TInputImage::PixelType;
62 
64  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
65 
67  static constexpr unsigned int NumberOfSmoothingFilters =
68  ( TInputImage::ImageDimension > 2 ) ? ( TInputImage::ImageDimension - 2 ) : ( 0 );
69 
74  using InternalRealType = float;
75  using RealImageType =
77 
82  using OutputImageAdaptorType = NthElementImageAdaptor< TOutputImage,
84 
86 
90 
94 
97 
100  using GaussianFiltersArray = std::vector< GaussianFilterPointer >;
101 
105 
107  using OutputImagePointer = typename TOutputImage::Pointer;
108 
110  using OutputImageType = TOutputImage;
111  using OutputPixelType = typename OutputImageType::PixelType;
113 
116 
118  itkNewMacro(Self);
119 
121  void SetSigma(RealType sigma);
122  RealType GetSigma() const;
124 
128  void SetNormalizeAcrossScale(bool normalizeInScaleSpace);
129  itkGetConstMacro(NormalizeAcrossScale, bool);
131 
137  void GenerateInputRequestedRegion() override;
138 
139 #ifdef ITK_USE_CONCEPT_CHECKING
140  // Begin concept checking
141  itkConceptMacro( InputHasNumericTraitsCheck,
143  itkConceptMacro( OutputHasPixelTraitsCheck,
145  // End concept checking
146 #endif
147 
148 protected:
149 
151  ~HessianRecursiveGaussianImageFilter() override = default;
152  void PrintSelf(std::ostream & os, Indent indent) const override;
153 
155  void GenerateData() override;
156 
157  // Override since the filter produces the entire dataset
158  void EnlargeOutputRequestedRegion(DataObject *output) override;
159 
160 private:
161 
166 
169 };
170 } // end namespace itk
171 
172 #ifndef ITK_MANUAL_INSTANTIATION
173 #include "itkHessianRecursiveGaussianImageFilter.hxx"
174 #endif
175 
176 #endif
typename OutputImageType::Pointer OutputImagePointer
Define numeric traits for std::vector.
Base class for computing IIR convolution with an approximation of a Gaussian kernel.
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 DerivativeFilterAType::Pointer DerivativeFilterAPointer
typename PixelTraits< OutputPixelType >::ValueType OutputComponentType
typename TPixelType::ValueType ValueType
typename DerivativeFilterBType::Pointer DerivativeFilterBPointer
TOutputImage OutputImageType
Computes the Hessian matrix of an image by convolution with the Second and Cross derivatives of a Gau...
Presents an image as being composed of the N-th element of its pixels.
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 OutputImageAdaptorType::Pointer OutputImageAdaptorPointer
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition: itkImage.h:75
typename NumericTraits< PixelType >::RealType RealType