ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkLevelSetEquationBinaryMaskTerm.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 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 :
45  public LevelSetEquationTermBase< TInput, TLevelSetContainer >
46 {
47 public:
51  typedef LevelSetEquationTermBase< TInput,
52  TLevelSetContainer > Superclass;
53 
55  itkNewMacro( Self );
56 
58  itkTypeMacro( LevelSetEquationBinaryMaskTerm,
60 
61  typedef typename Superclass::InputImageType InputImageType;
62  typedef typename Superclass::InputImagePointer InputImagePointer;
63  typedef typename Superclass::InputPixelType InputPixelType;
64  typedef typename Superclass::InputPixelRealType InputPixelRealType;
65 
66  typedef typename Superclass::LevelSetContainerType LevelSetContainerType;
67  typedef typename Superclass::LevelSetContainerPointer LevelSetContainerPointer;
68  typedef typename Superclass::LevelSetType LevelSetType;
69  typedef typename Superclass::LevelSetPointer LevelSetPointer;
70  typedef typename Superclass::LevelSetOutputPixelType LevelSetOutputPixelType;
71  typedef typename Superclass::LevelSetOutputRealType LevelSetOutputRealType;
72  typedef typename Superclass::LevelSetInputIndexType LevelSetInputIndexType;
73  typedef typename Superclass::LevelSetGradientType LevelSetGradientType;
74  typedef typename Superclass::LevelSetHessianType LevelSetHessianType;
75  typedef typename Superclass::LevelSetIdentifierType LevelSetIdentifierType;
76 
77  typedef typename Superclass::HeavisideType HeavisideType;
78  typedef typename Superclass::HeavisideConstPointer HeavisideConstPointer;
79 
80  typedef typename Superclass::LevelSetDataType LevelSetDataType;
81 
82  typedef typename Superclass::DomainMapImageFilterType DomainMapImageFilterType;
83  typedef typename Superclass::CacheImageType CacheImageType;
84 
85  itkSetObjectMacro( Mask, InputImageType );
86 
88  virtual void Update() ITK_OVERRIDE;
89 
91  virtual void InitializeParameters() ITK_OVERRIDE;
92 
94  virtual void Initialize( const LevelSetInputIndexType& iP ) ITK_OVERRIDE;
95 
97  virtual void UpdatePixel( const LevelSetInputIndexType& iP,
98  const LevelSetOutputRealType & oldValue,
99  const LevelSetOutputRealType & newValue ) ITK_OVERRIDE;
100 
101 protected:
103 
104  virtual ~LevelSetEquationBinaryMaskTerm() ITK_OVERRIDE;
105 
108  virtual LevelSetOutputRealType Value( const LevelSetInputIndexType& iP ) ITK_OVERRIDE;
109 
112  virtual LevelSetOutputRealType Value( const LevelSetInputIndexType& iP,
113  const LevelSetDataType& iData ) ITK_OVERRIDE;
114 
115 
117 
118 private:
119  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetEquationBinaryMaskTerm);
120 };
121 
122 }
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkLevelSetEquationBinaryMaskTerm.hxx"
125 #endif
126 
127 #endif
Superclass::LevelSetInputIndexType LevelSetInputIndexType
Light weight base class for most itk classes.
Superclass::HeavisideConstPointer HeavisideConstPointer
Superclass::LevelSetHessianType LevelSetHessianType
Superclass::DomainMapImageFilterType DomainMapImageFilterType
Superclass::LevelSetContainerType LevelSetContainerType
Superclass::LevelSetGradientType LevelSetGradientType
Abstract class to represents a term in the level-set evolution PDE.
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
Superclass::LevelSetOutputRealType LevelSetOutputRealType
Superclass::LevelSetContainerPointer LevelSetContainerPointer
Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Class to represent the mask boundary as a negative energy.
Superclass::LevelSetIdentifierType LevelSetIdentifierType