ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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);
53
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
72 using typename Superclass::LevelSetType;
73 using typename Superclass::LevelSetPointer;
80
81 using typename Superclass::HeavisideType;
83
84 using typename Superclass::LevelSetDataType;
85
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 {}
100
102 void
104
106 void
107 Initialize(const LevelSetInputIndexType & itkNotUsed(index)) override
108 {}
109
112 virtual void
114
116 void
117 UpdatePixel(const LevelSetInputIndexType & itkNotUsed(index),
118 const LevelSetOutputRealType & itkNotUsed(oldValue),
119 const LevelSetOutputRealType & itkNotUsed(newValue)) override
120 {}
121
122
123protected:
125
127
130 Value(const LevelSetInputIndexType & index) override;
131
134 Value(const LevelSetInputIndexType & index, const LevelSetDataType & data) override;
135
136private:
139};
140
141} // namespace itk
142#ifndef ITK_MANUAL_INSTANTIATION
143# include "itkLevelSetEquationOverlapPenaltyTerm.hxx"
144#endif
145
146#endif
Perform more precise accumulation of floating point numbers.
LevelSetOutputRealType Value(const LevelSetInputIndexType &index, const LevelSetDataType &data) override
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename LevelSetContainerType::IdListConstIterator IdListConstIterator
typename LevelSetContainerType::IdListType IdListType
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
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
CompensatedSummation< LevelSetOutputRealType > CompensatedSummationType
void Initialize(const LevelSetInputIndexType &index) override
typename LevelSetContainerType::CacheImageType CacheImageType
~LevelSetEquationOverlapPenaltyTerm() override=default
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
typename LevelSetContainerType::DomainMapImageFilterType DomainMapImageFilterType
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
typename LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
typename LevelSetContainerType::DomainMapImageFilterType DomainMapImageFilterType
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
typename LevelSetContainerType::CacheImageType CacheImageType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....