ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkDiscreteLevelSetImage.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 __itkDiscreteLevelSetImage_h
20 #define __itkDiscreteLevelSetImage_h
21 
22 #include "itkLevelSetImage.h"
23 
24 namespace itk
25 {
35 template< typename TOutput, unsigned int VDimension >
37  public LevelSetImage< Index< VDimension >, VDimension, TOutput >
38 {
39 public:
41 
46 
48  itkTypeMacro ( DiscreteLevelSetImage, LevelSetImage );
49 
50  itkStaticConstMacro ( Dimension, unsigned int, Superclass::Dimension );
51 
52  typedef typename Superclass::InputType InputType;
58 
60  virtual OutputType Evaluate( const InputType& inputIndex ) const = 0;
61 
63  virtual GradientType EvaluateGradient( const InputType& inputIndex ) const;
64 
66  virtual HessianType EvaluateHessian( const InputType& inputIndex ) const;
67 
69  virtual OutputRealType EvaluateLaplacian( const InputType& inputIndex ) const;
70 
72  virtual OutputRealType EvaluateMeanCurvature( const InputType& inputIndex ) const;
73 
74  virtual GradientType EvaluateForwardGradient( const InputType& inputIndex ) const;
75 
76  virtual GradientType EvaluateBackwardGradient( const InputType& inputIndex ) const;
77 
79  virtual void Evaluate( const InputType& inputIndex, LevelSetDataType& data ) const;
80 
83  virtual void EvaluateGradient( const InputType& inputIndex, LevelSetDataType& data ) const;
84 
87  virtual void EvaluateHessian( const InputType& inputIndex, LevelSetDataType& data ) const;
88 
91  virtual void EvaluateMeanCurvature( const InputType& inputIndex, LevelSetDataType& data ) const;
92 
95  virtual void EvaluateLaplacian( const InputType& inputIndex, LevelSetDataType& data ) const;
96 
99  virtual void EvaluateForwardGradient( const InputType& inputIndex, LevelSetDataType& data ) const;
100 
103  virtual void EvaluateBackwardGradient( const InputType& inputIndex, LevelSetDataType& data ) const;
104 
105 protected:
107 
108  virtual ~DiscreteLevelSetImage();
109 
111  virtual void Initialize();
112 
114  virtual void CopyInformation(const DataObject *data);
115 
117  virtual void Graft( const DataObject* data );
118 
119 private:
120 
121  DiscreteLevelSetImage( const Self& ); // purposely not implemented
122  void operator = ( const Self& ); // purposely not implemented
123  };
124 }
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkDiscreteLevelSetImage.hxx"
128 #endif
129 
130 #endif // __itkDiscreteLevelSetImage_h
Superclass::HessianType HessianType
Superclass::OutputRealType OutputRealType
static const unsigned int Dimension
Superclass::InputType InputType
Abstract class for a level-set function on one Image.
static const unsigned int Dimension
Superclass::LevelSetDataType LevelSetDataType
void operator=(const Self &)
virtual HessianType EvaluateHessian(const InputType &inputIndex) const
virtual void CopyInformation(const DataObject *data)
virtual OutputRealType EvaluateLaplacian(const InputType &inputIndex) const
virtual OutputType Evaluate(const InputType &inputIndex) const =0
virtual OutputRealType EvaluateMeanCurvature(const InputType &inputIndex) const
Superclass::OutputRealType OutputRealType
Abstract class for a level-set function on one Image.
Superclass::OutputType OutputType
Superclass::LevelSetDataType LevelSetDataType
virtual GradientType EvaluateBackwardGradient(const InputType &inputIndex) const
Superclass::GradientType GradientType
Superclass::OutputType OutputType
virtual GradientType EvaluateGradient(const InputType &inputIndex) const
virtual GradientType EvaluateForwardGradient(const InputType &inputIndex) const
virtual void Graft(const DataObject *data)
Superclass::GradientType GradientType
Superclass::HessianType HessianType
LevelSetImage< IndexType, VDimension, TOutput > Superclass
SmartPointer< const Self > ConstPointer
Base class for all data objects in ITK.