Orfeo Toolbox  4.0
itkShapePriorSegmentationLevelSetFunction.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 __itkShapePriorSegmentationLevelSetFunction_h
19 #define __itkShapePriorSegmentationLevelSetFunction_h
20 
23 
24 namespace itk
25 {
54 template< typename TImageType, typename TFeatureImageType = TImageType >
56  public SegmentationLevelSetFunction< TImageType, TFeatureImageType >
57 {
58 public:
65  typedef TFeatureImageType FeatureImageType;
66 
68  itkNewMacro(Self);
69 
72 
74  typedef typename Superclass::ImageType ImageType;
81  typedef typename Superclass::PixelType PixelType;
83  typedef typename Superclass::IndexType IndexType;
85 
87  itkStaticConstMacro(ImageDimension, unsigned int,
89 
91  typedef ShapeSignedDistanceFunction< double,
92  itkGetStaticConstMacro(ImageDimension) > ShapeFunctionType;
94 
97  { m_ShapePriorWeight = p; }
99  { return m_ShapePriorWeight; }
100 
104  { m_ShapeFunction = ptr; }
106  { return m_ShapeFunction; }
107 
109  virtual PixelType ComputeUpdate( const NeighborhoodType & neighborhood,
110  void *globalData,
111  const FloatOffsetType & = FloatOffsetType(0.0) );
112 
114  virtual TimeStepType ComputeGlobalTimeStep(void *globalData) const;
115 
121  };
122 
124  virtual void * GetGlobalDataPointer() const
125  {
127 
132  return ans;
133  }
134 
136  virtual void ReleaseGlobalDataPointer(void *GlobalData) const
137  { delete (ShapePriorGlobalDataStruct *)GlobalData; }
138 
139 protected:
142 
143  ShapePriorSegmentationLevelSetFunction(const Self &); //purposely not
144  // implemented
145  void operator=(const Self &); //purposely not
146  // implemented
147 
148  void PrintSelf(std::ostream & os, Indent indent) const;
149 
150 private:
151 
154 };
155 } // end namespace itk
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
159 #endif
160 
161 #endif

Generated at Sat Mar 8 2014 15:31:46 for Orfeo Toolbox with doxygen 1.8.3.1