ITK  5.3.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  * http://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 
59 
60  using InputImageType = typename Superclass::InputImageType;
61  using InputImagePointer = typename Superclass::InputImagePointer;
62  using InputPixelType = typename Superclass::InputPixelType;
63  using InputPixelRealType = typename Superclass::InputPixelRealType;
64 
65  using LevelSetContainerType = typename Superclass::LevelSetContainerType;
66  using LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer;
67  using LevelSetType = typename Superclass::LevelSetType;
68  using LevelSetPointer = typename Superclass::LevelSetPointer;
69  using LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType;
70  using LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType;
71  using LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType;
72  using LevelSetGradientType = typename Superclass::LevelSetGradientType;
73  using LevelSetHessianType = typename Superclass::LevelSetHessianType;
74  using LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType;
75 
76  using HeavisideType = typename Superclass::HeavisideType;
77  using HeavisideConstPointer = typename Superclass::HeavisideConstPointer;
78 
79  using LevelSetDataType = typename Superclass::LevelSetDataType;
80 
81  using DomainMapImageFilterType = typename Superclass::DomainMapImageFilterType;
82  using CacheImageType = 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::LevelSetEquationBinaryMaskTerm::LevelSetOutputPixelType
typename Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Definition: itkLevelSetEquationBinaryMaskTerm.h:69
itk::LevelSetEquationBinaryMaskTerm::LevelSetDataType
typename Superclass::LevelSetDataType LevelSetDataType
Definition: itkLevelSetEquationBinaryMaskTerm.h:79
itk::LevelSetEquationBinaryMaskTerm::LevelSetHessianType
typename Superclass::LevelSetHessianType LevelSetHessianType
Definition: itkLevelSetEquationBinaryMaskTerm.h:73
itk::LevelSetEquationBinaryMaskTerm::InputPixelRealType
typename Superclass::InputPixelRealType InputPixelRealType
Definition: itkLevelSetEquationBinaryMaskTerm.h:63
itk::LevelSetEquationBinaryMaskTerm::LevelSetContainerType
typename Superclass::LevelSetContainerType LevelSetContainerType
Definition: itkLevelSetEquationBinaryMaskTerm.h:65
itk::SmartPointer< Self >
itk::LevelSetEquationBinaryMaskTerm::CacheImageType
typename Superclass::CacheImageType CacheImageType
Definition: itkLevelSetEquationBinaryMaskTerm.h:82
itk::LevelSetEquationBinaryMaskTerm::LevelSetInputIndexType
typename Superclass::LevelSetInputIndexType LevelSetInputIndexType
Definition: itkLevelSetEquationBinaryMaskTerm.h:71
itk::LevelSetEquationBinaryMaskTerm::m_Mask
InputImagePointer m_Mask
Definition: itkLevelSetEquationBinaryMaskTerm.h:120
itk::LevelSetEquationBinaryMaskTerm::InputImagePointer
typename Superclass::InputImagePointer InputImagePointer
Definition: itkLevelSetEquationBinaryMaskTerm.h:61
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::LevelSetEquationBinaryMaskTerm::LevelSetContainerPointer
typename Superclass::LevelSetContainerPointer LevelSetContainerPointer
Definition: itkLevelSetEquationBinaryMaskTerm.h:66
itk::LevelSetEquationBinaryMaskTerm::InputImageType
typename Superclass::InputImageType InputImageType
Definition: itkLevelSetEquationBinaryMaskTerm.h:60
itk::LevelSetEquationBinaryMaskTerm::DomainMapImageFilterType
typename Superclass::DomainMapImageFilterType DomainMapImageFilterType
Definition: itkLevelSetEquationBinaryMaskTerm.h:81
itk::LevelSetEquationBinaryMaskTerm::HeavisideType
typename Superclass::HeavisideType HeavisideType
Definition: itkLevelSetEquationBinaryMaskTerm.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::LevelSetEquationBinaryMaskTerm::LevelSetGradientType
typename Superclass::LevelSetGradientType LevelSetGradientType
Definition: itkLevelSetEquationBinaryMaskTerm.h:72
itk::LevelSetEquationBinaryMaskTerm::LevelSetIdentifierType
typename Superclass::LevelSetIdentifierType LevelSetIdentifierType
Definition: itkLevelSetEquationBinaryMaskTerm.h:74
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::LevelSetEquationBinaryMaskTerm::LevelSetType
typename Superclass::LevelSetType LevelSetType
Definition: itkLevelSetEquationBinaryMaskTerm.h:67
itk::LevelSetEquationBinaryMaskTerm::LevelSetOutputRealType
typename Superclass::LevelSetOutputRealType LevelSetOutputRealType
Definition: itkLevelSetEquationBinaryMaskTerm.h:70
itkLevelSetEquationTermBase.h
itk::LevelSetEquationBinaryMaskTerm::InputPixelType
typename Superclass::InputPixelType InputPixelType
Definition: itkLevelSetEquationBinaryMaskTerm.h:62
itk::LevelSetEquationBinaryMaskTerm::LevelSetPointer
typename Superclass::LevelSetPointer LevelSetPointer
Definition: itkLevelSetEquationBinaryMaskTerm.h:68
itk::LevelSetEquationBinaryMaskTerm::HeavisideConstPointer
typename Superclass::HeavisideConstPointer HeavisideConstPointer
Definition: itkLevelSetEquationBinaryMaskTerm.h:77