ITK  6.0.0
Insight Toolkit
itkLevelSetEquationOverlapPenaltyTerm.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 itkLevelSetEquationOverlapPenaltyTerm_h
20#define itkLevelSetEquationOverlapPenaltyTerm_h
21
24
25namespace itk
26{
45template <typename TInput, // Input image or mesh
46 typename TLevelSetContainer>
47class ITK_TEMPLATE_EXPORT LevelSetEquationOverlapPenaltyTerm
48 : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationOverlapPenaltyTerm);
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(LevelSetEquationOverlapPenaltyTerm);
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
81 using typename Superclass::HeavisideType;
82 using typename Superclass::HeavisideConstPointer;
83
84 using typename Superclass::LevelSetDataType;
85
86 using typename Superclass::DomainMapImageFilterType;
87 using typename Superclass::CacheImageType;
88
89 using IdListType = typename LevelSetContainerType::IdListType;
90 using IdListIterator = typename LevelSetContainerType::IdListIterator;
91 using IdListConstIterator = typename LevelSetContainerType::IdListConstIterator;
92
94
95
97 void
98 Update() override;
99
101 void
103
105 void
106 Initialize(const LevelSetInputIndexType & index) override;
107
110 virtual void
112
114 void
116 const LevelSetOutputRealType & oldValue,
117 const LevelSetOutputRealType & newValue) override;
118
119
120protected:
122
124
127 Value(const LevelSetInputIndexType & index) override;
128
131 Value(const LevelSetInputIndexType & index, const LevelSetDataType & data) override;
132
133private:
134 DomainMapImageFilterType * m_DomainMapImageFilter{};
135 CacheImageType * m_CacheImage{};
136};
137
138} // namespace itk
139#ifndef ITK_MANUAL_INSTANTIATION
140# include "itkLevelSetEquationOverlapPenaltyTerm.hxx"
141#endif
142
143#endif
Perform more precise accumulation of floating point numbers.
Class to represent the overlap penalty among many level-sets.
LevelSetOutputRealType Value(const LevelSetInputIndexType &index, const LevelSetDataType &data) override
typename LevelSetContainerType::IdListConstIterator IdListConstIterator
typename LevelSetContainerType::IdListType IdListType
virtual void ComputeSumTerm(const LevelSetInputIndexType &index, LevelSetOutputRealType &sum)
void UpdatePixel(const LevelSetInputIndexType &index, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
LevelSetOutputRealType Value(const LevelSetInputIndexType &index) override
typename LevelSetContainerType::IdListIterator IdListIterator
void Initialize(const LevelSetInputIndexType &index) override
~LevelSetEquationOverlapPenaltyTerm() override=default
Abstract class to represents a term in the level-set evolution PDE.
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
typename LevelSetContainerType::DomainMapImageFilterType DomainMapImageFilterType
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
typename LevelSetContainerType::CacheImageType CacheImageType
Light weight base class for most itk classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....