ITK  4.9.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 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();
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  DiscreteLevelSetImage( const Self& ) ITK_DELETE_FUNCTION;
122  void operator = ( const Self& ) ITK_DELETE_FUNCTION;
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
virtual void CopyInformation(const DataObject *data) override
Abstract class for a level-set function on one Image.
virtual OutputRealType EvaluateLaplacian(const InputType &inputIndex) const override
virtual OutputType Evaluate(const InputType &inputIndex) const override=0
static const unsigned int Dimension
Superclass::LevelSetDataType LevelSetDataType
virtual HessianType EvaluateHessian(const InputType &inputIndex) const override
virtual void Graft(const DataObject *data) override
Superclass::OutputRealType OutputRealType
Abstract class for a level-set function on one Image.
virtual void Initialize() override
Superclass::OutputType OutputType
virtual GradientType EvaluateGradient(const InputType &inputIndex) const override
Superclass::LevelSetDataType LevelSetDataType
virtual GradientType EvaluateBackwardGradient(const InputType &inputIndex) const
Superclass::GradientType GradientType
Superclass::OutputType OutputType
virtual OutputRealType EvaluateMeanCurvature(const InputType &inputIndex) const override
virtual GradientType EvaluateForwardGradient(const InputType &inputIndex) const
Superclass::GradientType GradientType
Superclass::HessianType HessianType
LevelSetImage< IndexType, VDimension, TOutput > Superclass
SmartPointer< const Self > ConstPointer
Base class for all data objects in ITK.