ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkLaplacianSegmentationLevelSetFunction.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 #ifndef itkLaplacianSegmentationLevelSetFunction_h
19 #define itkLaplacianSegmentationLevelSetFunction_h
20 
22 
23 namespace itk
24 {
33 template< typename TImageType, typename TFeatureImageType = TImageType >
35  public SegmentationLevelSetFunction< TImageType, TFeatureImageType >
36 {
37 public:
44  typedef TFeatureImageType FeatureImageType;
45 
47  itkNewMacro(Self);
48 
51 
53  typedef typename Superclass::ImageType ImageType;
57 
59  itkStaticConstMacro(ImageDimension, unsigned int,
61 
62  virtual void CalculateSpeedImage() ITK_OVERRIDE;
63 
64  virtual void Initialize(const RadiusType & r) ITK_OVERRIDE
65  {
67 
71  }
72 
79  void SetAdvectionWeight(const ScalarValueType value) ITK_OVERRIDE
80  {
82  {
84  }
85  }
87 
88 protected:
89 
91  {
92  this->SetAdvectionWeight(0.0);
93  this->SetPropagationWeight(1.0);
94  this->SetCurvatureWeight(1.0);
95  }
96 
98 
99  LaplacianSegmentationLevelSetFunction(const Self &) ITK_DELETE_FUNCTION;
100  void operator=(const Self &) ITK_DELETE_FUNCTION;
101 };
102 } // end namespace itk
103 
104 #ifndef ITK_MANUAL_INSTANTIATION
105 #include "itkLaplacianSegmentationLevelSetFunction.hxx"
106 #include "itkMath.h"
107 #endif
108 
109 #endif
Light weight base class for most itk classes.
SegmentationLevelSetFunction< TImageType, TFeatureImageType > Superclass
virtual void CalculateSpeedImage() override
ConstNeighborhoodIterator< TImageType >::RadiusType RadiusType
bool ExactlyEquals(const TInput1 &x1, const TInput2 &x2)
Return the result of an exact comparison between two scalar values of potetially different types...
Definition: itkMath.h:665
void SetAdvectionWeight(const ScalarValueType value) override
virtual void SetPropagationWeight(const ScalarValueType p)
This function is used in LaplacianSegmentationImageFilter to segment structures in an image based Lap...
virtual void Initialize(const RadiusType &r) override
Define additional traits for native types such as int or float.
virtual void SetCurvatureWeight(const ScalarValueType c)
virtual void SetAdvectionWeight(const ScalarValueType a)