ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetEquationLaplacianTerm.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 :
48  public LevelSetEquationTermBase< TInput, TLevelSetContainer >
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetEquationLaplacianTerm);
52 
56  using Superclass =
58 
60  itkNewMacro( Self );
61 
63  itkTypeMacro( LevelSetEquationLaplacianTerm,
65 
66  using InputImageType = typename Superclass::InputImageType;
67  using InputImagePointer = typename Superclass::InputImagePointer;
68  using InputPixelType = typename Superclass::InputPixelType;
69  using InputPixelRealType = typename Superclass::InputPixelRealType;
70 
71  using LevelSetContainerType = typename Superclass::LevelSetContainerType;
72  using LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer;
73  using LevelSetType = typename Superclass::LevelSetType;
74  using LevelSetPointer = typename Superclass::LevelSetPointer;
75  using LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType;
76  using LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType;
77  using LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType;
78  using LevelSetGradientType = typename Superclass::LevelSetGradientType;
79  using LevelSetHessianType = typename Superclass::LevelSetHessianType;
80  using LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType;
81 
82  using HeavisideType = typename Superclass::HeavisideType;
83  using HeavisideConstPointer = typename Superclass::HeavisideConstPointer;
84 
85  using LevelSetDataType = typename Superclass::LevelSetDataType;
86 
87  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
88 
93 
95 
97  void Update() override;
98 
100  void InitializeParameters() override;
101 
103  void Initialize( const LevelSetInputIndexType& ) override;
104 
106  void UpdatePixel( const LevelSetInputIndexType& iP,
107  const LevelSetOutputRealType& oldValue,
108  const LevelSetOutputRealType& newValue ) override;
109 
110 protected:
112 
113  ~LevelSetEquationLaplacianTerm() override = default;
114 
117  LevelSetOutputRealType LaplacianSpeed( const LevelSetInputIndexType& iP ) const;
118 
121  LevelSetOutputRealType Value( const LevelSetInputIndexType& iP ) override;
122 
126  const LevelSetDataType& iData ) override;
127 };
129 
130 }
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkLevelSetEquationLaplacianTerm.hxx"
133 #endif
134 #endif
typename ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
Light weight base class for most itk classes.
typename Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
typename Superclass::LevelSetIdentifierType LevelSetIdentifierType
Derived class to represents a propagation term in the level-set evolution PDE.
typename Superclass::LevelSetInputIndexType LevelSetInputIndexType
typename Superclass::InputImagePointer InputImagePointer
typename Superclass::InputPixelType InputPixelType
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename Superclass::InputPixelRealType InputPixelRealType
typename Superclass::HeavisideType HeavisideType
typename Superclass::InputImageType InputImageType
Abstract class to represents a term in the level-set evolution PDE.
typename Superclass::LevelSetHessianType LevelSetHessianType
typename Superclass::LevelSetPointer LevelSetPointer
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
typename Superclass::LevelSetDataType LevelSetDataType
typename Superclass::HeavisideConstPointer HeavisideConstPointer
typename Superclass::LevelSetGradientType LevelSetGradientType
typename Superclass::LevelSetContainerPointer LevelSetContainerPointer
typename Superclass::LevelSetContainerType LevelSetContainerType
typename Superclass::LevelSetType LevelSetType
typename Superclass::RadiusType RadiusType
typename Superclass::LevelSetOutputRealType LevelSetOutputRealType