ITK  5.2.0
Insight Toolkit
itkLevelSetEquationChanAndVeseExternalTerm.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 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_MOVE(LevelSetEquationChanAndVeseExternalTerm);
56 
61 
63  itkNewMacro(Self);
64 
67 
68  using InputImageType = typename Superclass::InputImageType;
69  using InputImagePointer = typename Superclass::InputImagePointer;
70  using InputPixelType = typename Superclass::InputPixelType;
71  using InputPixelRealType = typename Superclass::InputPixelRealType;
72 
73  using LevelSetContainerType = typename Superclass::LevelSetContainerType;
74  using LevelSetContainerPointer = typename Superclass::LevelSetContainerPointer;
75  using LevelSetType = typename Superclass::LevelSetType;
76  using LevelSetPointer = typename Superclass::LevelSetPointer;
77  using LevelSetOutputPixelType = typename Superclass::LevelSetOutputPixelType;
78  using LevelSetOutputRealType = typename Superclass::LevelSetOutputRealType;
79  using LevelSetInputIndexType = typename Superclass::LevelSetInputIndexType;
80  using LevelSetGradientType = typename Superclass::LevelSetGradientType;
81  using LevelSetHessianType = typename Superclass::LevelSetHessianType;
82  using LevelSetIdentifierType = typename Superclass::LevelSetIdentifierType;
83 
84  using DomainMapImageFilterType = typename Superclass::DomainMapImageFilterType;
85  using CacheImageType = typename Superclass::CacheImageType;
86 
87  using DomainIteratorType = typename DomainMapImageFilterType::DomainMapType::const_iterator;
88 
89  using IdListType = typename LevelSetContainerType::IdListType;
90  using IdListIterator = typename LevelSetContainerType::IdListIterator;
91  using IdListConstIterator = typename LevelSetContainerType::IdListConstIterator;
92 
93  using HeavisideType = typename Superclass::HeavisideType;
94  using HeavisideConstPointer = typename Superclass::HeavisideConstPointer;
95 
97  void
98  ComputeProduct(const LevelSetInputIndexType & iP, LevelSetOutputRealType & prod) override;
99 
102  void
103  ComputeProductTerm(const LevelSetInputIndexType & iP, LevelSetOutputRealType & prod) override;
104 
106  void
107  UpdatePixel(const LevelSetInputIndexType & iP,
108  const LevelSetOutputRealType & oldValue,
109  const LevelSetOutputRealType & newValue) override;
110 
111 protected:
113  ~LevelSetEquationChanAndVeseExternalTerm() override = default;
114 
115 private:
118 };
119 
120 } // namespace itk
121 #ifndef ITK_MANUAL_INSTANTIATION
122 # include "itkLevelSetEquationChanAndVeseExternalTerm.hxx"
123 #endif
124 
125 #endif
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetPointer
typename Superclass::LevelSetPointer LevelSetPointer
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:76
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetContainerType
typename Superclass::LevelSetContainerType LevelSetContainerType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:73
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetOutputPixelType
typename Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:77
itk::LevelSetEquationChanAndVeseExternalTerm::HeavisideType
typename Superclass::HeavisideType HeavisideType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:93
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetOutputRealType
typename Superclass::LevelSetOutputRealType LevelSetOutputRealType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:78
itk::LevelSetEquationChanAndVeseExternalTerm::m_DomainMapImageFilter
DomainMapImageFilterType * m_DomainMapImageFilter
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:116
itk::LevelSetEquationChanAndVeseExternalTerm::InputPixelType
typename Superclass::InputPixelType InputPixelType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:70
itk::LevelSetEquationChanAndVeseExternalTerm::DomainMapImageFilterType
typename Superclass::DomainMapImageFilterType DomainMapImageFilterType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:84
itk::LevelSetEquationChanAndVeseExternalTerm::DomainIteratorType
typename DomainMapImageFilterType::DomainMapType::const_iterator DomainIteratorType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:87
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetGradientType
typename Superclass::LevelSetGradientType LevelSetGradientType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:80
itk::SmartPointer< Self >
itk::LevelSetEquationChanAndVeseExternalTerm::InputPixelRealType
typename Superclass::InputPixelRealType InputPixelRealType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:71
itk::LevelSetEquationChanAndVeseExternalTerm::IdListType
typename LevelSetContainerType::IdListType IdListType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:89
itk::LevelSetEquationChanAndVeseExternalTerm::IdListIterator
typename LevelSetContainerType::IdListIterator IdListIterator
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:90
itk::LevelSetEquationChanAndVeseExternalTerm
Class to represent the external energy Chan And Vese term.
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:50
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::LevelSetEquationChanAndVeseExternalTerm::HeavisideConstPointer
typename Superclass::HeavisideConstPointer HeavisideConstPointer
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:94
itk::LevelSetEquationChanAndVeseExternalTerm::m_CacheImage
CacheImageType * m_CacheImage
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:117
itkLevelSetEquationChanAndVeseInternalTerm.h
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetContainerPointer
typename Superclass::LevelSetContainerPointer LevelSetContainerPointer
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:74
itk::LevelSetEquationChanAndVeseExternalTerm::InputImagePointer
typename Superclass::InputImagePointer InputImagePointer
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:69
itk::LevelSetEquationChanAndVeseExternalTerm::InputImageType
typename Superclass::InputImageType InputImageType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:68
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetInputIndexType
typename Superclass::LevelSetInputIndexType LevelSetInputIndexType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:79
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetHessianType
typename Superclass::LevelSetHessianType LevelSetHessianType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:81
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetType
typename Superclass::LevelSetType LevelSetType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:75
itkNumericTraits.h
itk::LevelSetEquationChanAndVeseInternalTerm
Class to represent the internal energy Chan And Vese term.
Definition: itkLevelSetEquationChanAndVeseInternalTerm.h:48
itk::LevelSetEquationChanAndVeseExternalTerm::LevelSetIdentifierType
typename Superclass::LevelSetIdentifierType LevelSetIdentifierType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:82
itk::LevelSetEquationChanAndVeseExternalTerm::IdListConstIterator
typename LevelSetContainerType::IdListConstIterator IdListConstIterator
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:91
itk::LevelSetEquationChanAndVeseExternalTerm::CacheImageType
typename Superclass::CacheImageType CacheImageType
Definition: itkLevelSetEquationChanAndVeseExternalTerm.h:85