ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkLevelSetEquationOverlapPenaltyTerm.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 __itkLevelSetEquationOverlapPenaltyTerm_h
20 #define __itkLevelSetEquationOverlapPenaltyTerm_h
21 
24 
25 namespace itk
26 {
45 template< typename TInput, // Input image or mesh
46  typename TLevelSetContainer >
48  public LevelSetEquationTermBase< TInput, TLevelSetContainer >
49 {
50 public:
55 
57  itkNewMacro( Self );
58 
61 
66 
77 
80 
82 
85 
86  typedef typename LevelSetContainerType::IdListType IdListType;
87  typedef typename LevelSetContainerType::IdListIterator IdListIterator;
88  typedef typename LevelSetContainerType::IdListConstIterator IdListConstIterator;
89 
91 
92 
94  virtual void Update();
95 
97  virtual void InitializeParameters();
98 
100  virtual void Initialize( const LevelSetInputIndexType& index );
101 
104  virtual void ComputeSumTerm( const LevelSetInputIndexType& index,
105  LevelSetOutputRealType& sum );
106 
108  virtual void UpdatePixel( const LevelSetInputIndexType& index,
109  const LevelSetOutputRealType& oldValue,
110  const LevelSetOutputRealType& newValue );
111 
112 
113 protected:
115 
117 
119  virtual LevelSetOutputRealType Value( const LevelSetInputIndexType& index );
120 
123  const LevelSetDataType& data );
124 
125 private:
126  LevelSetEquationOverlapPenaltyTerm( const Self& ); // purposely not implemented
127  void operator = ( const Self& ); // purposely not implemented
128 
131 };
132 
133 }
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkLevelSetEquationOverlapPenaltyTerm.hxx"
136 #endif
137 
138 #endif
Light weight base class for most itk classes.
virtual void UpdatePixel(const LevelSetInputIndexType &index, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue)
Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
LevelSetContainerType::DomainMapImageFilterType DomainMapImageFilterType
virtual LevelSetOutputRealType Value(const LevelSetInputIndexType &index)
HeavisideStepFunctionBase< LevelSetOutputRealType, LevelSetOutputRealType > HeavisideType
Superclass::DomainMapImageFilterType DomainMapImageFilterType
virtual void Initialize(const LevelSetInputIndexType &index)
virtual void ComputeSumTerm(const LevelSetInputIndexType &index, LevelSetOutputRealType &sum)
CompensatedSummation< LevelSetOutputRealType > CompensatedSummationType
Abstract class to represents a term in the level-set evolution PDE.
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
Class to represent the overlap penalty among many level-sets.
Perform more precise accumulation of floating point numbers.
LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
LevelSetContainerType::IdListConstIterator IdListConstIterator
Superclass::LevelSetContainerPointer LevelSetContainerPointer