ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkShiSparseLevelSetImage.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 itkShiSparseLevelSetImage_h
20 #define itkShiSparseLevelSetImage_h
21 
22 #include "itkLevelSetSparseImage.h"
23 
24 namespace itk
25 {
36 template< unsigned int VDimension >
38  public LevelSetSparseImage< int8_t, VDimension >
39 {
40 public:
46 
48  itkNewMacro(Self);
49 
52 
53  itkStaticConstMacro ( Dimension, unsigned int, VDimension );
54 
55  typedef typename Superclass::InputType InputType;
61 
67 
71 
72  typedef typename Superclass::LayerType LayerType;
75 
79 
82  virtual OutputType Evaluate( const InputType& inputIndex ) const ITK_OVERRIDE;
83 
85  virtual HessianType EvaluateHessian( const InputType& inputIndex ) const ITK_OVERRIDE;
86 
88  virtual OutputRealType EvaluateLaplacian( const InputType& inputIndex ) const ITK_OVERRIDE;
89 
91  virtual OutputRealType EvaluateMeanCurvature( const InputType& inputIndex ) const ITK_OVERRIDE;
92 
93  virtual void EvaluateHessian( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
94  virtual void EvaluateLaplacian( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
95  virtual void EvaluateMeanCurvature( const InputType& inputIndex, LevelSetDataType& data ) const ITK_OVERRIDE;
96 
97  static inline LayerIdType MinusThreeLayer() { return -3; }
98  static inline LayerIdType MinusOneLayer() { return -1; }
99  static inline LayerIdType PlusOneLayer() { return 1; }
100  static inline LayerIdType PlusThreeLayer() { return 3; }
101 
102 protected:
103 
105 
106  virtual ~ShiSparseLevelSetImage();
107 
109  virtual void InitializeLayers() ITK_OVERRIDE;
110 
111  virtual void InitializeInternalLabelList() ITK_OVERRIDE;
112 
113 private:
114 
115  ShiSparseLevelSetImage( const Self& ); //purposely not implemented
116  void operator = ( const Self& ); //purposely not implemented
117 };
118 }
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "itkShiSparseLevelSetImage.hxx"
122 #endif
123 
124 #endif // itkShiSparseLevelSetImage_h
std::map< InputType, OutputType, Functor::IndexLexicographicCompare< VDimension > > LayerType
Superclass::LabelObjectLineType LabelObjectLineType
LevelSetSparseImage< int8_t, VDimension > Superclass
LabelObject< LayerIdType, VDimension > LabelObjectType
Derived class for the shi representation of level-set function.
Superclass::LabelMapType LabelMapType
virtual HessianType EvaluateHessian(const InputType &inputIndex) const override
Superclass::LayerIdType LayerIdType
virtual OutputType Evaluate(const InputType &inputIndex) const override
Base class for the sparse representation of a level-set function on one Image.
virtual OutputType Evaluate(const InputType &inputIndex) const override=0
Superclass::GradientType GradientType
std::map< LayerIdType, LayerType > LayerMapType
Superclass::OutputRealType OutputRealType
virtual void InitializeLayers() override
SmartPointer< const Self > ConstPointer
Superclass::LayerIterator LayerIterator
Superclass::LayerMapIterator LayerMapIterator
Superclass::LabelObjectType LabelObjectType
Superclass::LabelObjectPointer LabelObjectPointer
virtual void InitializeInternalLabelList() override
Superclass::OutputRealType OutputRealType
Superclass::HessianType HessianType
virtual OutputRealType EvaluateMeanCurvature(const InputType &inputIndex) const override
Superclass::LabelObjectLengthType LabelObjectLengthType
Superclass::LabelMapPointer LabelMapPointer
virtual OutputRealType EvaluateLaplacian(const InputType &inputIndex) const override
static const unsigned int Dimension
Superclass::LayerMapConstIterator LayerMapConstIterator
Base class for all data objects in ITK.
Superclass::LevelSetDataType LevelSetDataType
Superclass::LayerMapType LayerMapType
Superclass::LayerConstIterator LayerConstIterator