ITK  6.0.0
Insight Toolkit
itkLevelSetEquationChanAndVeseExternalTerm.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 itkLevelSetEquationChanAndVeseExternalTerm_h
20#define itkLevelSetEquationChanAndVeseExternalTerm_h
21
23#include "itkNumericTraits.h"
24
25namespace itk
26{
48template <typename TInput, // Input image or mesh
49 typename TLevelSetContainer>
51 : public LevelSetEquationChanAndVeseInternalTerm<TInput, TLevelSetContainer>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationChanAndVeseExternalTerm);
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(LevelSetEquationChanAndVeseExternalTerm);
67
68 using typename Superclass::InputImageType;
69 using typename Superclass::InputImagePointer;
70 using typename Superclass::InputPixelType;
71 using typename Superclass::InputPixelRealType;
72
73 using typename Superclass::LevelSetContainerType;
74 using typename Superclass::LevelSetContainerPointer;
75 using typename Superclass::LevelSetType;
76 using typename Superclass::LevelSetPointer;
77 using typename Superclass::LevelSetOutputPixelType;
78 using typename Superclass::LevelSetOutputRealType;
79 using typename Superclass::LevelSetInputIndexType;
80 using typename Superclass::LevelSetGradientType;
81 using typename Superclass::LevelSetHessianType;
82 using typename Superclass::LevelSetIdentifierType;
83
84 using typename Superclass::DomainMapImageFilterType;
85 using typename Superclass::CacheImageType;
86
87 using DomainIteratorType = typename DomainMapImageFilterType::DomainMapType::const_iterator;
88
89 using IdListType = typename LevelSetContainerType::IdListType;
90 using IdListIterator = typename LevelSetContainerType::IdListIterator;
91 using IdListConstIterator = typename LevelSetContainerType::IdListConstIterator;
92
93 using typename Superclass::HeavisideType;
94 using typename Superclass::HeavisideConstPointer;
95
97 void
99
102 void
104
106 void
108 const LevelSetOutputRealType & oldValue,
109 const LevelSetOutputRealType & newValue) override;
110
111protected:
114
115private:
116 DomainMapImageFilterType * m_DomainMapImageFilter{};
117 CacheImageType * m_CacheImage{};
118};
119
120} // namespace itk
121#ifndef ITK_MANUAL_INSTANTIATION
122# include "itkLevelSetEquationChanAndVeseExternalTerm.hxx"
123#endif
124
125#endif
Class to represent the external energy Chan And Vese term.
void ComputeProduct(const LevelSetInputIndexType &iP, LevelSetOutputRealType &prod) override
void ComputeProductTerm(const LevelSetInputIndexType &iP, LevelSetOutputRealType &prod) override
void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
~LevelSetEquationChanAndVeseExternalTerm() override=default
typename LevelSetContainerType::IdListConstIterator IdListConstIterator
typename LevelSetContainerType::IdListIterator IdListIterator
typename DomainMapImageFilterType::DomainMapType::const_iterator DomainIteratorType
Class to represent the internal energy Chan And Vese term.
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....