ITK  4.9.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 >
45  public LevelSetEquationTermBase< TInput, TLevelSetContainer >
46 {
47 public:
51  typedef LevelSetEquationTermBase< TInput,
52  TLevelSetContainer > Superclass;
53 
55  itkNewMacro( Self );
56 
58  itkTypeMacro( LevelSetEquationBinaryMaskTerm,
60 
65 
76 
79 
81 
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();
105 
108  virtual LevelSetOutputRealType Value( const LevelSetInputIndexType& iP ) ITK_OVERRIDE;
109 
113  const LevelSetDataType& iData ) ITK_OVERRIDE;
114 
115 
117 
118 private:
119  LevelSetEquationBinaryMaskTerm( const Self& ) ITK_DELETE_FUNCTION;
120  void operator = ( const Self& ) ITK_DELETE_FUNCTION;
121 };
122 
123 }
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkLevelSetEquationBinaryMaskTerm.hxx"
126 #endif
127 
128 #endif
Superclass::LevelSetInputIndexType LevelSetInputIndexType
Light weight base class for most itk classes.
Superclass::HeavisideConstPointer HeavisideConstPointer
LevelSetContainerType::DomainMapImageFilterType DomainMapImageFilterType
Superclass::LevelSetHessianType LevelSetHessianType
Superclass::DomainMapImageFilterType DomainMapImageFilterType
Superclass::LevelSetContainerType LevelSetContainerType
HeavisideStepFunctionBase< LevelSetOutputRealType, LevelSetOutputRealType > HeavisideType
virtual void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue) override
Superclass::LevelSetGradientType LevelSetGradientType
Abstract class to represents a term in the level-set evolution PDE.
virtual LevelSetOutputRealType Value(const LevelSetInputIndexType &iP) override
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
virtual void Update() override
Superclass::LevelSetOutputRealType LevelSetOutputRealType
LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
virtual void Initialize(const LevelSetInputIndexType &iP) override
Superclass::LevelSetContainerPointer LevelSetContainerPointer
Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Class to represent the mask boundary as a negative energy.
Superclass::LevelSetIdentifierType LevelSetIdentifierType
virtual void InitializeParameters() override