ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkGradientNDAnisotropicDiffusionFunction.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 itkGradientNDAnisotropicDiffusionFunction_h
19#define itkGradientNDAnisotropicDiffusionFunction_h
20
25
26namespace itk
27{
55template <typename TImage>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(GradientNDAnisotropicDiffusionFunction);
60
66
68 itkNewMacro(Self);
69
71 itkOverrideGetNameOfClassMacro(GradientNDAnisotropicDiffusionFunction);
72
74 using typename Superclass::ImageType;
75 using typename Superclass::PixelType;
76 using typename Superclass::PixelRealType;
77 using typename Superclass::TimeStepType;
78 using typename Superclass::RadiusType;
79 using typename Superclass::NeighborhoodType;
80 using typename Superclass::FloatOffsetType;
81
83
85 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
86
90 void * globalData,
91 const FloatOffsetType & offset = FloatOffsetType(0.0)) override;
92
94 void
96 {
98 this->GetConductanceParameter() * -2.0f);
99 }
100
101protected:
104
107
112
115
118
121
122 static double m_MIN_NORM;
123};
124} // end namespace itk
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkGradientNDAnisotropicDiffusionFunction.hxx"
128#endif
129
130#endif
A NeighborhoodOperator for taking an n-th order derivative at a pixel.
ConstNeighborhoodIterator< TImage, DefaultBoundaryConditionType > NeighborhoodType
Vector< float, Self::ImageDimension > FloatOffsetType
typename ConstNeighborhoodIterator< TImage >::RadiusType RadiusType
PixelType ComputeUpdate(const NeighborhoodType &it, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
~GradientNDAnisotropicDiffusionFunction() override=default
DerivativeOperator< PixelType, Self::ImageDimension > m_DerivativeOperator
Defines the inner product operation between an Neighborhood and a NeighborhoodOperator.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition itkIntTypes.h:86