ITK  4.6.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< typename TInput, // Input image or mesh
51  typename 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  itkGetModifiableObjectMacro(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
Light weight base class for most itk classes.
LevelSetOutputRealType m_NeighborhoodScales[ImageDimension]
Vector< LevelSetOutputRealType, itkGetStaticConstMacro(ImageDimension) > NeighborhoodScalesType
virtual void Initialize(const LevelSetInputIndexType &)
ZeroFluxNeumannBoundaryCondition< InputImageType > DefaultBoundaryConditionType
ConstNeighborhoodIterator< InputImageType, DefaultBoundaryConditionType > NeighborhoodType
Superclass::LevelSetGradientType LevelSetGradientType
Superclass::LevelSetIdentifierType LevelSetIdentifierType
HeavisideStepFunctionBase< LevelSetOutputRealType, LevelSetOutputRealType > HeavisideType
Superclass::LevelSetOutputPixelType LevelSetOutputPixelType
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
Superclass::LevelSetOutputRealType LevelSetOutputRealType
ConstNeighborhoodIterator< InputImageType >::RadiusType RadiusType
Superclass::InputPixelRealType InputPixelRealType
Abstract class to represents a term in the level-set evolution PDE.
A templated class holding a n-Dimensional vector.
Definition: itkVector.h:62
Superclass::LevelSetContainerPointer LevelSetContainerPointer
Image< VectorType, itkGetStaticConstMacro(ImageDimension) > AdvectionImageType
LevelSetEquationTermBase< TInput, TLevelSetContainer > Superclass
virtual void UpdatePixel(const LevelSetInputIndexType &iP, const LevelSetOutputRealType &oldValue, const LevelSetOutputRealType &newValue)
virtual LevelSetOutputRealType Value(const LevelSetInputIndexType &iP)
LevelSetContainerType::LevelSetIdentifierType LevelSetIdentifierType
Superclass::LevelSetContainerType LevelSetContainerType
Superclass::HeavisideConstPointer HeavisideConstPointer
VectorType AdvectionSpeed(const LevelSetInputIndexType &iP) const
Superclass::LevelSetHessianType LevelSetHessianType
Superclass::LevelSetInputIndexType LevelSetInputIndexType
Derived class to represents an advection term in the level-set evolution PDE.
Templated n-dimensional image class.
Definition: itkImage.h:75
void SetAdvectionImage(AdvectionImageType *iImage)