ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetEquationChanAndVeseExternalTerm.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 itkLevelSetEquationChanAndVeseExternalTerm_h
20 #define itkLevelSetEquationChanAndVeseExternalTerm_h
21 
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
48 template< typename TInput, // Input image or mesh
49  typename TLevelSetContainer >
50 class ITK_TEMPLATE_EXPORT LevelSetEquationChanAndVeseExternalTerm :
51  public LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
52 {
53 public:
54  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetEquationChanAndVeseExternalTerm);
56 
61  TLevelSetContainer >;
62 
64  itkNewMacro( Self );
65 
69 
70  using InputImageType = typename Superclass::InputImageType;
71  using InputImagePointer = typename Superclass::InputImagePointer;
72  using InputPixelType = typename Superclass::InputPixelType;
73  using InputPixelRealType = typename Superclass::InputPixelRealType;
74 
75  using LevelSetContainerType = typename Superclass::LevelSetContainerType;
76  using LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer;
77  using LevelSetType = typename Superclass::LevelSetType;
78  using LevelSetPointer = typename Superclass::LevelSetPointer;
79  using LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType;
80  using LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType;
81  using LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType;
82  using LevelSetGradientType = typename Superclass::LevelSetGradientType;
83  using LevelSetHessianType = typename Superclass::LevelSetHessianType;
84  using LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType;
85 
86  using DomainMapImageFilterType = typename Superclass::DomainMapImageFilterType;
87  using CacheImageType = typename Superclass::CacheImageType;
88 
89  using DomainIteratorType = typename DomainMapImageFilterType::DomainMapType::const_iterator;
90 
91  using IdListType = typename LevelSetContainerType::IdListType;
92  using IdListIterator = typename LevelSetContainerType::IdListIterator;
93  using IdListConstIterator = typename LevelSetContainerType::IdListConstIterator;
94 
95  using HeavisideType = typename Superclass::HeavisideType;
96  using HeavisideConstPointer = typename Superclass::HeavisideConstPointer;
97 
99  void ComputeProduct( const LevelSetInputIndexType& iP,
100  LevelSetOutputRealType& prod ) override;
101 
104  void ComputeProductTerm( const LevelSetInputIndexType& iP,
105  LevelSetOutputRealType& prod ) override;
106 
108  void UpdatePixel( const LevelSetInputIndexType& iP,
109  const LevelSetOutputRealType & oldValue,
110  const LevelSetOutputRealType & newValue ) override;
111 
112 protected:
114  ~LevelSetEquationChanAndVeseExternalTerm() override = default;
115 
116 private:
119 };
120 
121 }
122 #ifndef ITK_MANUAL_INSTANTIATION
123 #include "itkLevelSetEquationChanAndVeseExternalTerm.hxx"
124 #endif
125 
126 #endif
Light weight base class for most itk classes.
typename LevelSetContainerType::IdListIterator IdListIterator
typename Superclass::LevelSetContainerPointer LevelSetContainerPointer
Class to represent the internal energy Chan And Vese term.
typename Superclass::HeavisideConstPointer HeavisideConstPointer
typename Superclass::LevelSetInputIndexType LevelSetInputIndexType
typename Superclass::LevelSetContainerType LevelSetContainerType
typename Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
typename Superclass::DomainMapImageFilterType DomainMapImageFilterType
typename Superclass::LevelSetIdentifierType LevelSetIdentifierType
Class to represent the external energy Chan And Vese term.
typename LevelSetContainerType::IdListConstIterator IdListConstIterator
typename Superclass::LevelSetOutputRealType LevelSetOutputRealType
typename DomainMapImageFilterType::DomainMapType::const_iterator DomainIteratorType