ITK  5.2.0
Insight Toolkit
itkCurvatureAnisotropicDiffusionImageFilter.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 itkCurvatureAnisotropicDiffusionImageFilter_h
19 #define itkCurvatureAnisotropicDiffusionImageFilter_h
20 
23 #include "itkMacro.h"
24 namespace itk
25 {
57 template <typename TInputImage, typename TOutputImage>
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_MOVE(CurvatureAnisotropicDiffusionImageFilter);
62 
68 
70  itkNewMacro(Self);
71 
74 
77 
79  static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
80 
81 #ifdef ITK_USE_CONCEPT_CHECKING
82  // Begin concept checking
84  // End concept checking
85 #endif
86 
87 protected:
89  {
92  this->SetDifferenceFunction(q);
93  }
94 
95  ~CurvatureAnisotropicDiffusionImageFilter() override = default;
96 
97  void
99  {
101  if (this->GetTimeStep() > 0.5 / std::pow(2.0, static_cast<double>(ImageDimension)))
102  {
103  itkWarningMacro(
104  << "Anisotropic diffusion is using a time step which may introduce instability into the solution.");
105  }
106  }
107 };
108 } // namespace itk
109 
110 #endif
itk::CurvatureAnisotropicDiffusionImageFilter::ImageDimension
static constexpr unsigned int ImageDimension
Definition: itkCurvatureAnisotropicDiffusionImageFilter.h:79
itk::Concept::HasNumericTraits
Definition: itkConceptChecking.h:712
itk::AnisotropicDiffusionImageFilter::ImageDimension
static constexpr unsigned int ImageDimension
Definition: itkAnisotropicDiffusionImageFilter.h:95
itk::CurvatureAnisotropicDiffusionImageFilter::CurvatureAnisotropicDiffusionImageFilter
CurvatureAnisotropicDiffusionImageFilter()
Definition: itkCurvatureAnisotropicDiffusionImageFilter.h:88
itk::FiniteDifferenceImageFilter::SetDifferenceFunction
virtual void SetDifferenceFunction(FiniteDifferenceFunctionType *_arg)
itk::SmartPointer< Self >
itk::DenseFiniteDifferenceImageFilter::UpdateBufferType
OutputImageType UpdateBufferType
Definition: itkDenseFiniteDifferenceImageFilter.h:102
itk::AnisotropicDiffusionImageFilter::UpdateBufferType
typename Superclass::UpdateBufferType UpdateBufferType
Definition: itkAnisotropicDiffusionImageFilter.h:91
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::CurvatureAnisotropicDiffusionImageFilter
This filter performs anisotropic diffusion on a scalar itk::Image using the modified curvature diffus...
Definition: itkCurvatureAnisotropicDiffusionImageFilter.h:58
itkCurvatureNDAnisotropicDiffusionFunction.h
itk::CurvatureAnisotropicDiffusionImageFilter::InitializeIteration
void InitializeIteration() override
Definition: itkCurvatureAnisotropicDiffusionImageFilter.h:98
itkMacro.h
itk::AnisotropicDiffusionImageFilter::GetTimeStep
virtual TimeStepType GetTimeStep() const
itk::CurvatureNDAnisotropicDiffusionFunction::New
static Pointer New()
itk::AnisotropicDiffusionImageFilter::InitializeIteration
void InitializeIteration() override
itkAnisotropicDiffusionImageFilter.h
itk::CurvatureAnisotropicDiffusionImageFilter::~CurvatureAnisotropicDiffusionImageFilter
~CurvatureAnisotropicDiffusionImageFilter() override=default
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::AnisotropicDiffusionImageFilter
Definition: itkAnisotropicDiffusionImageFilter.h:73