ITK  4.13.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 >
36 class ITK_TEMPLATE_EXPORT DiscreteLevelSetImage :
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;
53  typedef typename Superclass::OutputType OutputType;
54  typedef typename Superclass::OutputRealType OutputRealType;
55  typedef typename Superclass::GradientType GradientType;
56  typedef typename Superclass::HessianType HessianType;
57  typedef typename Superclass::LevelSetDataType LevelSetDataType;
58 
60  virtual OutputType Evaluate( const InputType& inputIndex ) const ITK_OVERRIDE = 0;
61 
63  virtual GradientType EvaluateGradient( const InputType& inputIndex ) const ITK_OVERRIDE;
64 
66  virtual HessianType EvaluateHessian( const InputType& inputIndex ) const ITK_OVERRIDE;
67 
69  virtual OutputRealType EvaluateLaplacian( const InputType& inputIndex ) const ITK_OVERRIDE;
70 
72  virtual OutputRealType EvaluateMeanCurvature( const InputType& inputIndex ) const ITK_OVERRIDE;
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 ITK_OVERRIDE;
80 
83  virtual void EvaluateGradient( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
84 
87  virtual void EvaluateHessian( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
88 
91  virtual void EvaluateMeanCurvature( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
92 
95  virtual void EvaluateLaplacian( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
96 
99  virtual void EvaluateForwardGradient( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
100 
103  virtual void EvaluateBackwardGradient( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
104 
105 protected:
107 
108  virtual ~DiscreteLevelSetImage() ITK_OVERRIDE;
109 
111  virtual void Initialize() ITK_OVERRIDE;
112 
114  virtual void CopyInformation(const DataObject *data) ITK_OVERRIDE;
115 
117  virtual void Graft( const DataObject* data ) ITK_OVERRIDE;
118 
119 private:
120 
121  ITK_DISALLOW_COPY_AND_ASSIGN(DiscreteLevelSetImage);
122  };
123 }
124 
125 #ifndef ITK_MANUAL_INSTANTIATION
126 #include "itkDiscreteLevelSetImage.hxx"
127 #endif
128 
129 #endif // itkDiscreteLevelSetImage_h
Abstract class for a level-set function on one Image.
Superclass::LevelSetDataType LevelSetDataType
Superclass::OutputRealType OutputRealType
Abstract class for a level-set function on one Image.
Superclass::OutputType OutputType
Superclass::GradientType GradientType
Superclass::HessianType HessianType
LevelSetImage< IndexType, VDimension, TOutput > Superclass
SmartPointer< const Self > ConstPointer
Base class for all data objects in ITK.