ITK  5.3.0
Insight Toolkit
itkLevelSetEquationLaplacianTerm.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 itkLevelSetEquationLaplacianTerm_h
20 #define itkLevelSetEquationLaplacianTerm_h
21 
25 #include "itkVector.h"
26 #include "vnl/vnl_matrix_fixed.h"
27 
28 namespace itk
29 {
45 template <typename TInput, // Input image or mesh
46  typename TLevelSetContainer>
47 class ITK_TEMPLATE_EXPORT LevelSetEquationLaplacianTerm : public LevelSetEquationTermBase<TInput, TLevelSetContainer>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_MOVE(LevelSetEquationLaplacianTerm);
51 
56 
58  itkNewMacro(Self);
59 
62 
63  using InputImageType = typename Superclass::InputImageType;
64  using InputImagePointer = typename Superclass::InputImagePointer;
65  using InputPixelType = typename Superclass::InputPixelType;
66  using InputPixelRealType = typename Superclass::InputPixelRealType;
67 
68  using LevelSetContainerType = typename Superclass::LevelSetContainerType;
69  using LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer;
70  using LevelSetType = typename Superclass::LevelSetType;
71  using LevelSetPointer = typename Superclass::LevelSetPointer;
72  using LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType;
73  using LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType;
74  using LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType;
75  using LevelSetGradientType = typename Superclass::LevelSetGradientType;
76  using LevelSetHessianType = typename Superclass::LevelSetHessianType;
77  using LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType;
78 
79  using HeavisideType = typename Superclass::HeavisideType;
80  using HeavisideConstPointer = typename Superclass::HeavisideConstPointer;
81 
82  using LevelSetDataType = typename Superclass::LevelSetDataType;
83 
84  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
85 
90 
92 
94  void
95  Update() override;
96 
98  void
99  InitializeParameters() override;
100 
102  void
103  Initialize(const LevelSetInputIndexType &) override;
104 
106  void
107  UpdatePixel(const LevelSetInputIndexType & iP,
108  const LevelSetOutputRealType & oldValue,
109  const LevelSetOutputRealType & newValue) override;
110 
111 protected:
113 
114  ~LevelSetEquationLaplacianTerm() override = default;
115 
119  LaplacianSpeed(const LevelSetInputIndexType & iP) const;
120 
124  Value(const LevelSetInputIndexType & iP) override;
125 
129  Value(const LevelSetInputIndexType & iP, const LevelSetDataType & iData) override;
130 };
132 
133 } // namespace itk
134 #ifndef ITK_MANUAL_INSTANTIATION
135 # include "itkLevelSetEquationLaplacianTerm.hxx"
136 #endif
137 #endif
itk::LevelSetEquationLaplacianTerm::LevelSetInputIndexType
typename Superclass::LevelSetInputIndexType LevelSetInputIndexType
Definition: itkLevelSetEquationLaplacianTerm.h:74
itk::LevelSetEquationLaplacianTerm::LevelSetContainerPointer
typename Superclass::LevelSetContainerPointer LevelSetContainerPointer
Definition: itkLevelSetEquationLaplacianTerm.h:69
itk::ConstNeighborhoodIterator::RadiusType
typename Superclass::RadiusType RadiusType
Definition: itkConstNeighborhoodIterator.h:71
itkConstNeighborhoodIterator.h
itk::LevelSetEquationLaplacianTerm::HeavisideConstPointer
typename Superclass::HeavisideConstPointer HeavisideConstPointer
Definition: itkLevelSetEquationLaplacianTerm.h:80
itk::Vector
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
itk::LevelSetEquationLaplacianTerm::LevelSetGradientType
typename Superclass::LevelSetGradientType LevelSetGradientType
Definition: itkLevelSetEquationLaplacianTerm.h:75
itk::SmartPointer< Self >
itk::LevelSetEquationLaplacianTerm::InputPixelType
typename Superclass::InputPixelType InputPixelType
Definition: itkLevelSetEquationLaplacianTerm.h:65
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::LevelSetEquationLaplacianTerm::LevelSetOutputRealType
typename Superclass::LevelSetOutputRealType LevelSetOutputRealType
Definition: itkLevelSetEquationLaplacianTerm.h:73
itk::LevelSetEquationLaplacianTerm::InputImagePointer
typename Superclass::InputImagePointer InputImagePointer
Definition: itkLevelSetEquationLaplacianTerm.h:64
itk::LevelSetEquationLaplacianTerm::LevelSetPointer
typename Superclass::LevelSetPointer LevelSetPointer
Definition: itkLevelSetEquationLaplacianTerm.h:71
itk::LevelSetEquationLaplacianTerm::LevelSetIdentifierType
typename Superclass::LevelSetIdentifierType LevelSetIdentifierType
Definition: itkLevelSetEquationLaplacianTerm.h:77
itk::LevelSetEquationLaplacianTerm::LevelSetOutputPixelType
typename Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Definition: itkLevelSetEquationLaplacianTerm.h:72
itk::LevelSetEquationTermBase
Abstract class to represents a term in the level-set evolution PDE.
Definition: itkLevelSetEquationTermBase.h:49
itk::LevelSetEquationLaplacianTerm::HeavisideType
typename Superclass::HeavisideType HeavisideType
Definition: itkLevelSetEquationLaplacianTerm.h:79
itk::LevelSetEquationLaplacianTerm::LevelSetType
typename Superclass::LevelSetType LevelSetType
Definition: itkLevelSetEquationLaplacianTerm.h:70
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::LevelSetEquationLaplacianTerm::LevelSetDataType
typename Superclass::LevelSetDataType LevelSetDataType
Definition: itkLevelSetEquationLaplacianTerm.h:82
itk::ConstNeighborhoodIterator
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
Definition: itkConstNeighborhoodIterator.h:51
itk::LevelSetEquationLaplacianTerm::LevelSetContainerType
typename Superclass::LevelSetContainerType LevelSetContainerType
Definition: itkLevelSetEquationLaplacianTerm.h:68
itkVector.h
itk::LevelSetEquationLaplacianTerm::InputImageType
typename Superclass::InputImageType InputImageType
Definition: itkLevelSetEquationLaplacianTerm.h:63
itk::LevelSetEquationLaplacianTerm::InputPixelRealType
typename Superclass::InputPixelRealType InputPixelRealType
Definition: itkLevelSetEquationLaplacianTerm.h:66
itkLevelSetEquationTermBase.h
itk::ZeroFluxNeumannBoundaryCondition< InputImageType >
itk::LevelSetEquationLaplacianTerm::RadiusType
typename ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
Definition: itkLevelSetEquationLaplacianTerm.h:88
itkZeroFluxNeumannBoundaryCondition.h
itk::LevelSetEquationLaplacianTerm::LevelSetHessianType
typename Superclass::LevelSetHessianType LevelSetHessianType
Definition: itkLevelSetEquationLaplacianTerm.h:76
itk::LevelSetEquationLaplacianTerm
Derived class to represents a propagation term in the level-set evolution PDE.
Definition: itkLevelSetEquationLaplacianTerm.h:47