ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkLevelSetEquationAdvectionTerm.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 __itkLevelSetEquationAdvectionTerm_h
20 #define __itkLevelSetEquationAdvectionTerm_h
21 
25 #include "itkVector.h"
26 #include "vnl/vnl_matrix_fixed.h"
27 
28 namespace itk
29 {
50 template< class TInput, // Input image or mesh
51  class TLevelSetContainer >
53  public LevelSetEquationTermBase< TInput, TLevelSetContainer >
54 {
55 public:
61 
63  itkNewMacro( Self );
64 
66  itkTypeMacro( LevelSetEquationAdvectionTerm,
68 
73 
85 
88 
89  itkStaticConstMacro(ImageDimension, unsigned int, InputImageType::ImageDimension);
90 
92 
95 
96 
97  void SetAdvectionImage( AdvectionImageType* iImage );
98  itkGetObjectMacro( AdvectionImage, AdvectionImageType );
99 
100  itkSetMacro( DerivativeSigma, LevelSetOutputRealType );
101  itkGetMacro( DerivativeSigma, LevelSetOutputRealType );
102 
107 
109 
111  virtual void Update();
112 
114  virtual void InitializeParameters();
115 
117  virtual void Initialize( const LevelSetInputIndexType& );
118 
120  virtual void UpdatePixel( const LevelSetInputIndexType& iP,
121  const LevelSetOutputRealType& oldValue,
122  const LevelSetOutputRealType& newValue );
123 
124 protected:
126 
128 
130 
134 
139  const LevelSetDataType& iData );
141 
143 
144 private:
145  LevelSetEquationAdvectionTerm( const Self& ); // purposely not implemented
146  void operator = ( const Self& ); // purposely not implemented
147 
149 
151 
152  void GenerateAdvectionImage();
153 };
154 
155 }
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
158 #include "itkLevelSetEquationAdvectionTerm.hxx"
159 #endif
160 
161 #endif
162