ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLevelSetEquationCurvatureTerm.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 itkLevelSetEquationCurvatureTerm_h
20#define itkLevelSetEquationCurvatureTerm_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 TCurvatureImage = TInput>
49class ITK_TEMPLATE_EXPORT LevelSetEquationCurvatureTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationCurvatureTerm);
53
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(LevelSetEquationCurvatureTerm);
64
65 using typename Superclass::InputImageType;
66 using typename Superclass::InputImagePointer;
67 using typename Superclass::InputPixelType;
68 using typename Superclass::InputPixelRealType;
69
72 using typename Superclass::LevelSetType;
73 using typename Superclass::LevelSetPointer;
80
81 using typename Superclass::HeavisideType;
83
84 using typename Superclass::LevelSetDataType;
85
86 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
87
88 using CurvatureImageType = TCurvatureImage;
89 using CurvatureImagePointer = typename CurvatureImageType::Pointer;
90
94 void
96 itkGetModifiableObjectMacro(CurvatureImage, CurvatureImageType);
98
99 itkSetMacro(UseCurvatureImage, bool);
100 itkGetMacro(UseCurvatureImage, bool);
101 itkBooleanMacro(UseCurvatureImage);
102
107
109
111 void
112 Update() override
113 {}
114
116 void
118
120 void
122 {}
123
125 void
126 UpdatePixel(const LevelSetInputIndexType & itkNotUsed(iP),
127 const LevelSetOutputRealType & itkNotUsed(oldValue),
128 const LevelSetOutputRealType & itkNotUsed(newValue)) override
129 {}
130
131protected:
133
134 ~LevelSetEquationCurvatureTerm() override = default;
135
139 Value(const LevelSetInputIndexType & iP) override;
140
144 Value(const LevelSetInputIndexType & iP, const LevelSetDataType & iData) override;
145
147
149
151};
152
153} // namespace itk
154
155#ifndef ITK_MANUAL_INSTANTIATION
156# include "itkLevelSetEquationCurvatureTerm.hxx"
157#endif
158
159#endif
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
itk::Size< VDimension > RadiusType
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
void SetCurvatureImage(CurvatureImageType *iImage)
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
ZeroFluxNeumannBoundaryCondition< InputImageType > DefaultBoundaryConditionType
void Initialize(const LevelSetInputIndexType &) override
typename CurvatureImageType::Pointer CurvatureImagePointer
Vector< LevelSetOutputRealType, Self::ImageDimension > NeighborhoodScalesType
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP, const LevelSetDataType &iData) override
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
LevelSetOutputRealType m_NeighborhoodScales[ImageDimension]
ConstNeighborhoodIterator< InputImageType, DefaultBoundaryConditionType > NeighborhoodType
~LevelSetEquationCurvatureTerm() override=default
LevelSetOutputRealType Value(const LevelSetInputIndexType &iP) override
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....