ITK  6.0.0
Insight Toolkit
itkLevelSetEquationBinaryMaskTerm.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 itkLevelSetEquationBinaryMaskTerm_h
20#define itkLevelSetEquationBinaryMaskTerm_h
21
23
24namespace itk
25{
42template <typename TInput, // Input image or mesh
43 typename TLevelSetContainer>
44class ITK_TEMPLATE_EXPORT LevelSetEquationBinaryMaskTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationBinaryMaskTerm);
48
53
55 itkNewMacro(Self);
56
58 itkOverrideGetNameOfClassMacro(LevelSetEquationBinaryMaskTerm);
59
60 using typename Superclass::InputImageType;
61 using typename Superclass::InputImagePointer;
62 using typename Superclass::InputPixelType;
63 using typename Superclass::InputPixelRealType;
64
65 using typename Superclass::LevelSetContainerType;
66 using typename Superclass::LevelSetContainerPointer;
67 using typename Superclass::LevelSetType;
68 using typename Superclass::LevelSetPointer;
69 using typename Superclass::LevelSetOutputPixelType;
70 using typename Superclass::LevelSetOutputRealType;
71 using typename Superclass::LevelSetInputIndexType;
72 using typename Superclass::LevelSetGradientType;
73 using typename Superclass::LevelSetHessianType;
74 using typename Superclass::LevelSetIdentifierType;
75
76 using typename Superclass::HeavisideType;
77 using typename Superclass::HeavisideConstPointer;
78
79 using typename Superclass::LevelSetDataType;
80
81 using typename Superclass::DomainMapImageFilterType;
82 using typename Superclass::CacheImageType;
83
84 itkSetObjectMacro(Mask, InputImageType);
85
87 void
88 Update() override;
89
91 void
93
95 void
96 Initialize(const LevelSetInputIndexType & iP) override;
97
99 void
101 const LevelSetOutputRealType & oldValue,
102 const LevelSetOutputRealType & newValue) override;
103
104protected:
106
108
112 Value(const LevelSetInputIndexType & index) override;
113
117 Value(const LevelSetInputIndexType & index, const LevelSetDataType & iData) override;
118
119
121};
122
123} // namespace itk
124#ifndef ITK_MANUAL_INSTANTIATION
125# include "itkLevelSetEquationBinaryMaskTerm.hxx"
126#endif
127
128#endif
Class to represent the mask boundary as a negative energy.
LevelSetOutputRealType Value(const LevelSetInputIndexType &index) override
void Initialize(const LevelSetInputIndexType &iP) override
~LevelSetEquationBinaryMaskTerm() override=default
LevelSetOutputRealType Value(const LevelSetInputIndexType &index, const LevelSetDataType &iData) override
void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
Abstract class to represents a term in the level-set evolution PDE.
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
Light weight base class for most itk classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....