ITK  4.6.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();
89 
91  virtual void InitializeParameters();
92 
94  virtual void Initialize( const LevelSetInputIndexType& iP );
95 
97  virtual void UpdatePixel( const LevelSetInputIndexType& iP,
98  const LevelSetOutputRealType & oldValue,
99  const LevelSetOutputRealType & newValue );
100 
101 protected:
103 
105 
109 
113  const LevelSetDataType& iData );
114 
115 
117 
118 private:
119  LevelSetEquationBinaryMaskTerm( const Self& ); // purposely not implemented
120  void operator = ( const Self& ); // purposely not implemented
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
virtual void Initialize(const LevelSetInputIndexType &iP)
Superclass::LevelSetHessianType LevelSetHessianType
Superclass::DomainMapImageFilterType DomainMapImageFilterType
Superclass::LevelSetContainerType LevelSetContainerType
HeavisideStepFunctionBase< LevelSetOutputRealType, LevelSetOutputRealType > HeavisideType
Superclass::LevelSetGradientType LevelSetGradientType
Abstract class to represents a term in the level-set evolution PDE.
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
Superclass::LevelSetOutputRealType LevelSetOutputRealType
LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
Superclass::LevelSetContainerPointer LevelSetContainerPointer
virtual void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue)
Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Class to represent the mask boundary as a negative energy.
virtual LevelSetOutputRealType Value(const LevelSetInputIndexType &iP)
Superclass::LevelSetIdentifierType LevelSetIdentifierType