ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLevelSetEquationAdvectionTerm.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 itkLevelSetEquationAdvectionTerm_h
20#define itkLevelSetEquationAdvectionTerm_h
21
25#include "itkVector.h"
26#include "vnl/vnl_matrix_fixed.h"
27
28namespace itk
29{
50template <typename TInput, // Input image or mesh
51 typename TLevelSetContainer>
52class ITK_TEMPLATE_EXPORT LevelSetEquationAdvectionTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
53{
54public:
55 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationAdvectionTerm);
57
62
64 itkNewMacro(Self);
65
67 itkOverrideGetNameOfClassMacro(LevelSetEquationAdvectionTerm);
68
69 using typename Superclass::InputImageType;
70 using typename Superclass::InputImagePointer;
71 using typename Superclass::InputPixelType;
72 using typename Superclass::InputPixelRealType;
73
76 using typename Superclass::LevelSetType;
77 using typename Superclass::LevelSetPointer;
84 using typename Superclass::LevelSetDataType;
85
86 using typename Superclass::HeavisideType;
88
89 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
90
92
95
96
97 void
99 itkGetModifiableObjectMacro(AdvectionImage, AdvectionImageType);
100
101 itkSetMacro(DerivativeSigma, LevelSetOutputRealType);
102 itkGetMacro(DerivativeSigma, LevelSetOutputRealType);
103
108
110
112 void
113 Update() override
114 {}
115
117 void
119
121 void
123 {}
124
126 void
127 UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP),
128 const LevelSetOutputRealType & itkNotUsed(oldValue),
129 const LevelSetOutputRealType & itkNotUsed(newValue)) override
130 {}
131
132protected:
134
135 ~LevelSetEquationAdvectionTerm() override = default;
136
138
141 VectorType
143
147 Value(const LevelSetInputIndexType & iP) override;
149 Value(const LevelSetInputIndexType & iP, const LevelSetDataType & iData) override;
151
153
154private:
156
158
159 void
161};
162
163} // namespace itk
164
165#ifndef ITK_MANUAL_INSTANTIATION
166# include "itkLevelSetEquationAdvectionTerm.hxx"
167#endif
168
169#endif
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
itk::Size< VDimension > RadiusType
Templated n-dimensional image class.
Definition itkImage.h:89
void SetAdvectionImage(AdvectionImageType *iImage)
~LevelSetEquationAdvectionTerm() override=default
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP) override
ConstNeighborhoodIterator< InputImageType, DefaultBoundaryConditionType > NeighborhoodType
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename AdvectionImageType::Pointer AdvectionImagePointer
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
void Initialize(const LevelSetInputIndexType &) override
LevelSetOutputRealType m_NeighborhoodScales[ImageDimension]
typename ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP, const LevelSetDataType &iData) override
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
VectorType AdvectionSpeed(const LevelSetInputIndexType &iP) const
Image< VectorType, Self::ImageDimension > AdvectionImageType
Vector< LevelSetOutputRealType, Self::ImageDimension > NeighborhoodScalesType
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
typename LevelSetContainerType::GradientType LevelSetGradientType
ZeroFluxNeumannBoundaryCondition< InputImageType > DefaultBoundaryConditionType
typename LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
HeavisideStepFunctionBase< LevelSetOutputRealType, LevelSetOutputRealType > HeavisideType
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename LevelSetContainerType::GradientType LevelSetGradientType
typename LevelSetContainerType::LevelSetPointer LevelSetPointer
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
typename NumericTraits< InputPixelType >::RealType InputPixelRealType
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
A function object that determines a neighborhood of values at an image boundary according to a Neuman...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....