ITK  6.0.0
Insight Toolkit
itkLevelSetEquationLaplacianTerm.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
19#ifndef itkLevelSetEquationLaplacianTerm_h
20#define itkLevelSetEquationLaplacianTerm_h
21
25#include "itkVector.h"
26#include "vnl/vnl_matrix_fixed.h"
27
28namespace itk
29{
45template <typename TInput, // Input image or mesh
46 typename TLevelSetContainer>
47class ITK_TEMPLATE_EXPORT LevelSetEquationLaplacianTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationLaplacianTerm);
51
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(LevelSetEquationLaplacianTerm);
62
63 using typename Superclass::InputImageType;
64 using typename Superclass::InputImagePointer;
65 using typename Superclass::InputPixelType;
66 using typename Superclass::InputPixelRealType;
67
68 using typename Superclass::LevelSetContainerType;
69 using typename Superclass::LevelSetContainerPointer;
70 using typename Superclass::LevelSetType;
71 using typename Superclass::LevelSetPointer;
72 using typename Superclass::LevelSetOutputPixelType;
73 using typename Superclass::LevelSetOutputRealType;
74 using typename Superclass::LevelSetInputIndexType;
75 using typename Superclass::LevelSetGradientType;
76 using typename Superclass::LevelSetHessianType;
77 using typename Superclass::LevelSetIdentifierType;
78
79 using typename Superclass::HeavisideType;
80 using typename Superclass::HeavisideConstPointer;
81
82 using typename Superclass::LevelSetDataType;
83
84 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
85
90
92
94 void
95 Update() override;
96
98 void
100
102 void
104
106 void
108 const LevelSetOutputRealType & oldValue,
109 const LevelSetOutputRealType & newValue) override;
110
111protected:
113
114 ~LevelSetEquationLaplacianTerm() override = default;
115
120
124 Value(const LevelSetInputIndexType & iP) override;
125
129 Value(const LevelSetInputIndexType & iP, const LevelSetDataType & iData) override;
130};
133} // namespace itk
134#ifndef ITK_MANUAL_INSTANTIATION
135# include "itkLevelSetEquationLaplacianTerm.hxx"
136#endif
137#endif
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
Derived class to represents a propagation term in the level-set evolution PDE.
~LevelSetEquationLaplacianTerm() override=default
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP) override
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP, const LevelSetDataType &iData) override
void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
typename ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
void Initialize(const LevelSetInputIndexType &) override
LevelSetOutputRealType LaplacianSpeed(const LevelSetInputIndexType &iP) const
Abstract class to represents a term in the level-set evolution PDE.
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
Light weight base class for most itk classes.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:63
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....