Orfeo Toolbox  4.2
itkGeodesicActiveContourShapePriorLevelSetFunction.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 __itkGeodesicActiveContourShapePriorLevelSetFunction_h
19 #define __itkGeodesicActiveContourShapePriorLevelSetFunction_h
20 
22 
23 namespace itk
24 {
92 template< typename TImageType, typename TFeatureImageType = TImageType >
94  public ShapePriorSegmentationLevelSetFunction< TImageType, TFeatureImageType >
95 {
96 public:
103  typedef TFeatureImageType FeatureImageType;
104 
106  itkNewMacro(Self);
107 
111 
113  typedef typename Superclass::ImageType ImageType;
121 
123  itkStaticConstMacro(ImageDimension, unsigned int,
125 
127  virtual void CalculateSpeedImage();
128 
130  virtual void CalculateAdvectionImage();
131 
133  virtual ScalarValueType CurvatureSpeed(const NeighborhoodType & neighborhood,
134  const FloatOffsetType & offset, GlobalDataStruct *gd) const
135  { return this->PropagationSpeed(neighborhood, offset, gd); }
136 
139  void SetDerivativeSigma(const double v)
140  { m_DerivativeSigma = v; }
142  { return m_DerivativeSigma; }
143 
144  virtual void Initialize(const RadiusType & r)
145  {
147 
152  }
153 
154 protected:
156  {
161 
162  m_DerivativeSigma = 1.0;
163  }
164 
166 
167  GeodesicActiveContourShapePriorLevelSetFunction(const Self &); //purposely not
168  // implemented
169  void operator=(const Self &); //purposely not
170  // implemented
171 
172  void PrintSelf(std::ostream & os, Indent indent) const
173  {
174  Superclass::PrintSelf(os, indent);
175  os << indent << "DerivativeSigma: " << m_DerivativeSigma << std::endl;
176  }
177 
178 private:
180 };
181 } // end namespace itk
182 
183 #ifndef ITK_MANUAL_INSTANTIATION
185 #endif
186 
187 #endif

Generated at Sat Aug 30 2014 14:43:14 for Orfeo Toolbox with doxygen 1.8.3.1