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 
24 namespace itk
25 {
42 template <typename TInput, // Input image or mesh
43  typename TLevelSetContainer>
44 class ITK_TEMPLATE_EXPORT LevelSetEquationBinaryMaskTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
45 {
46 public:
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
92  InitializeParameters() override;
93 
95  void
96  Initialize(const LevelSetInputIndexType & iP) override;
97 
99  void
100  UpdatePixel(const LevelSetInputIndexType & iP,
101  const LevelSetOutputRealType & oldValue,
102  const LevelSetOutputRealType & newValue) override;
103 
104 protected:
106 
107  ~LevelSetEquationBinaryMaskTerm() override = default;
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
itk::SmartPointer< Self >
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >::LevelSetInputIndexType
typename LevelSetContainerType::InputIndexType LevelSetInputIndexType
Definition: itkLevelSetEquationTermBase.h:76
itk::LevelSetEquationBinaryMaskTerm
Class to represent the mask boundary as a negative energy.
Definition: itkLevelSetEquationBinaryMaskTerm.h:44
itk::LevelSetEquationTermBase
Abstract class to represents a term in the level-set evolution PDE.
Definition: itkLevelSetEquationTermBase.h:49
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29
itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >::InputImageType
TInput InputImageType
Definition: itkLevelSetEquationTermBase.h:63
itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >::LevelSetDataType
typename LevelSetContainerType::LevelSetDataType LevelSetDataType
Definition: itkLevelSetEquationTermBase.h:79
itkLevelSetEquationTermBase.h
itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >::LevelSetOutputRealType
typename LevelSetContainerType::OutputRealType LevelSetOutputRealType
Definition: itkLevelSetEquationTermBase.h:75
itk::LevelSetEquationTermBase< TInput, TLevelSetContainer >::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkLevelSetEquationTermBase.h:64