ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkLevelSetEquationChanAndVeseExternalTerm.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 __itkLevelSetEquationChanAndVeseExternalTerm_h
20 #define __itkLevelSetEquationChanAndVeseExternalTerm_h
21 
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
48 template< class TInput, // Input image or mesh
49  class TLevelSetContainer >
51  public LevelSetEquationChanAndVeseInternalTerm< TInput, TLevelSetContainer >
52 {
53 public:
58  TLevelSetContainer > Superclass;
60 
62  itkNewMacro( Self );
63 
67 
72 
83 
86 
87  typedef typename DomainMapImageFilterType::DomainMapType::const_iterator DomainIteratorType;
88 
89  typedef typename LevelSetContainerType::IdListType IdListType;
90  typedef typename LevelSetContainerType::IdListIterator IdListIterator;
91  typedef typename LevelSetContainerType::IdListConstIterator IdListConstIterator;
92 
95 
97  virtual void ComputeProduct( const LevelSetInputIndexType& iP,
98  LevelSetOutputRealType& prod );
99 
102  virtual void ComputeProductTerm( const LevelSetInputIndexType& iP,
103  LevelSetOutputRealType& prod );
104 
106  virtual void UpdatePixel( const LevelSetInputIndexType& iP,
107  const LevelSetOutputRealType & oldValue,
108  const LevelSetOutputRealType & newValue );
109 
110 protected:
113 
114 private:
115  LevelSetEquationChanAndVeseExternalTerm( const Self& ); // purposely not implemented
116  void operator = ( const Self& ); // purposely not implemented
117 
120 };
121 
122 }
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkLevelSetEquationChanAndVeseExternalTerm.hxx"
125 #endif
126 
127 #endif
128