ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkAnisotropicDiffusionImageFilter.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 itkAnisotropicDiffusionImageFilter_h
19 #define itkAnisotropicDiffusionImageFilter_h
20 
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
72 template< typename TInputImage, typename TOutputImage >
73 class ITK_TEMPLATE_EXPORT AnisotropicDiffusionImageFilter:
74  public DenseFiniteDifferenceImageFilter< TInputImage, TOutputImage >
75 {
76 public:
77  ITK_DISALLOW_COPY_AND_ASSIGN(AnisotropicDiffusionImageFilter);
78 
84 
88 
90  using InputImageType = typename Superclass::InputImageType;
91  using OutputImageType = typename Superclass::OutputImageType;
92  using UpdateBufferType = typename Superclass::UpdateBufferType;
93 
96  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
97 
100  using PixelType = typename Superclass::PixelType;
102 
104  itkSetMacro(TimeStep, TimeStepType);
105  itkGetConstMacro(TimeStep, TimeStepType);
107 
110  itkSetMacro(ConductanceParameter, double);
111  itkGetConstMacro(ConductanceParameter, double);
113 
116  itkSetMacro(ConductanceScalingUpdateInterval, unsigned int);
117  itkGetConstMacro(ConductanceScalingUpdateInterval, unsigned int);
119 
122  itkSetMacro(ConductanceScalingParameter, double);
123  itkGetConstMacro(ConductanceScalingParameter, double);
125 
134  {
135  m_FixedAverageGradientMagnitude = a;
136  this->Modified();
137  m_GradientMagnitudeIsFixed = true;
138  }
140 
141  itkGetConstMacro(FixedAverageGradientMagnitude, double);
142 
143 protected:
145  ~AnisotropicDiffusionImageFilter() override = default;
146  void PrintSelf(std::ostream & os, Indent indent) const override;
147 
150  // virtual bool Halt();
151 
153  void InitializeIteration() override;
154 
156 
157 private:
162 
164 };
165 } // end namspace itk
166 
167 #ifndef ITK_MANUAL_INSTANTIATION
168 #include "itkAnisotropicDiffusionImageFilter.hxx"
169 #endif
170 
171 #endif
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.
TOutputImage OutputImageType
Control indentation during Print() invocation.
Definition: itkIndent.h:49