ITK  6.0.0
Insight Toolkit
itkLevelSetEquationPropagationTerm.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 itkLevelSetEquationPropagationTerm_h
20#define itkLevelSetEquationPropagationTerm_h
21
25#include "itkVector.h"
26#include "vnl/vnl_matrix_fixed.h"
27
28namespace itk
29{
46template <typename TInput, // Input image or mesh
47 typename TLevelSetContainer,
48 typename TPropagationImage = TInput>
49class ITK_TEMPLATE_EXPORT LevelSetEquationPropagationTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationPropagationTerm);
53
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(LevelSetEquationPropagationTerm);
64
65 using typename Superclass::InputImageType;
66 using typename Superclass::InputImagePointer;
67 using typename Superclass::InputPixelType;
68 using typename Superclass::InputPixelRealType;
69
70 using typename Superclass::LevelSetContainerType;
71 using typename Superclass::LevelSetContainerPointer;
72 using typename Superclass::LevelSetType;
73 using typename Superclass::LevelSetPointer;
74 using typename Superclass::LevelSetOutputPixelType;
75 using typename Superclass::LevelSetOutputRealType;
76 using typename Superclass::LevelSetInputIndexType;
77 using typename Superclass::LevelSetGradientType;
78 using typename Superclass::LevelSetHessianType;
79 using typename Superclass::LevelSetIdentifierType;
80 using typename Superclass::LevelSetDataType;
81
82 using typename Superclass::HeavisideType;
83 using typename Superclass::HeavisideConstPointer;
84
85 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
86
87 using PropagationImageType = TPropagationImage;
89
94
96
100 itkSetObjectMacro(PropagationImage, PropagationImageType);
101 itkGetModifiableObjectMacro(PropagationImage, PropagationImageType);
105 void
106 Update() override;
107
109 void
111
113 void
115
117 void
119 const LevelSetOutputRealType & oldValue,
120 const LevelSetOutputRealType & newValue) override;
121
122protected:
124
126
127 PropagationImagePointer m_PropagationImage{};
128
131 LevelSetOutputRealType
133
137 Value(const LevelSetInputIndexType & iP) override;
139 Value(const LevelSetInputIndexType & iP, const LevelSetDataType & iData) override;
140};
143} // namespace itk
144
145#ifndef ITK_MANUAL_INSTANTIATION
146# include "itkLevelSetEquationPropagationTerm.hxx"
147#endif
148
149#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.
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP) override
void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
~LevelSetEquationPropagationTerm() override=default
typename PropagationImageType::Pointer PropagationImagePointer
typename ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
void Initialize(const LevelSetInputIndexType &) override
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP, const LevelSetDataType &iData) override
LevelSetOutputRealType PropagationSpeed(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
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....