ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpeckleReducingAnisotropicDiffusionFunction.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 itkSpeckleReducingAnisotropicDiffusionFunction_h
19#define itkSpeckleReducingAnisotropicDiffusionFunction_h
20
21#include <cmath>
22
28#include "itkMacro.h"
29
30namespace itk
31{
53template <typename TImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(SpeckleReducingAnisotropicDiffusionFunction);
59
65
67 itkNewMacro(Self);
68
70 itkOverrideGetNameOfClassMacro(SpeckleReducingAnisotropicDiffusionFunction);
71
80
81 using SizeType = typename ImageType::SizeType;
82 using RegionType = typename ImageType::RegionType;
84 using MetricImagePointerType = typename ImageType::Pointer;
86
88 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
89
93 void * globalData,
94 const FloatOffsetType & offset = FloatOffsetType(0.0)) override;
95
97 void
99
101 ComputeDiffusionCoefficient(PixelType intensity, PixelType averageGradient, PixelType laplacian);
102
105 void
106 SetRho(const PixelType & rho)
107 {
108 m_rho = rho;
109 }
110 const PixelType &
111 GetRho() const
112 {
113 return m_rho;
114 }
115
118 void
119 SetQ0(const PixelType & q0)
120 {
121 m_q0 = q0;
122 }
123 const PixelType &
124 GetQ0() const
125 {
126 return m_q0;
127 }
128
129 void
131 {
132 m_ElapsedIterationCount = iteration;
133 }
134 const IdentifierType &
139
140protected:
143
146
151
154
157 // DerivativeOperator<PixelType, Self::ImageDimension> m_LaplacianOperator;
158
164
167
170
174
177};
178} // end namespace itk
179
180#ifndef ITK_MANUAL_INSTANTIATION
181# include "itkSpeckleReducingAnisotropicDiffusionFunction.hxx"
182#endif
183
184#endif // itkSpeckleReducingAnisotropicDiffusionFunction_h
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
A NeighborhoodOperator for use in calculating the Laplacian at a pixel.
Defines the inner product operation between an Neighborhood and a NeighborhoodOperator.
Implements transparent reference counting.
DerivativeOperator< PixelType, Self::ImageDimension > m_DerivativeOperator
PixelType ComputeUpdate(const NeighborhoodType &it, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
LaplacianOperator< PixelType, Self::ImageDimension > m_LaplacianOperator
PixelType ComputeDiffusionCoefficient(PixelType intensity, PixelType averageGradient, PixelType laplacian)
~SpeckleReducingAnisotropicDiffusionFunction() override=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType IdentifierType
Definition itkIntTypes.h:95
unsigned long SizeValueType
Definition itkIntTypes.h:82