ITK  4.4.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& iP ) const = 0;
61 
63  virtual GradientType EvaluateGradient( const InputType& iP ) const;
64 
66  virtual HessianType EvaluateHessian( const InputType& iP ) const;
67 
69  virtual OutputRealType EvaluateLaplacian( const InputType& iP ) const;
70 
72  virtual OutputRealType EvaluateMeanCurvature( const InputType& iP ) const;
73 
74  virtual GradientType EvaluateForwardGradient( const InputType& iP ) const;
75 
76  virtual GradientType EvaluateBackwardGradient( const InputType& iP ) const;
77 
79  virtual void Evaluate( const InputType& iP, LevelSetDataType& ioData ) const;
80 
83  virtual void EvaluateGradient( const InputType& iP, LevelSetDataType& ioData ) const;
84 
87  virtual void EvaluateHessian( const InputType& iP, LevelSetDataType& ioData ) const;
88 
91  virtual void EvaluateMeanCurvature( const InputType& iP, LevelSetDataType& ioData ) const;
92 
95  virtual void EvaluateLaplacian( const InputType& iP, LevelSetDataType& ioData ) const;
96 
99  virtual void EvaluateForwardGradient( const InputType& iP, LevelSetDataType& ioData ) const;
100 
103  virtual void EvaluateBackwardGradient( const InputType& iP, LevelSetDataType& ioData ) 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
131