Orfeo Toolbox  4.0
itkFiniteDifferenceFunction.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 __itkFiniteDifferenceFunction_h
19 #define __itkFiniteDifferenceFunction_h
20 
21 #include "itkLightObject.h"
23 #include "itkVector.h"
24 
25 namespace itk
26 {
65 template< typename TImageType >
67 {
68 public:
74 
77 
79  typedef TImageType ImageType;
80  typedef typename ImageType::PixelType PixelType;
81  typedef double PixelRealType;
82 
84  itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension);
85 
87  typedef double TimeStepType;
88 
93 
96 
100 
104 
108 
118  virtual void InitializeIteration() {}
119 
133 #if !defined( CABLE_CONFIGURATION )
134  virtual PixelType ComputeUpdate( const NeighborhoodType & neighborhood,
135  void *globalData,
136  const FloatOffsetType & offset = FloatOffsetType(0.0) ) = 0;
137 
138 #endif
139 
142  void SetRadius(const RadiusType & r);
143 
146  const RadiusType & GetRadius() const;
147 
152 
155 
160 
167  virtual TimeStepType ComputeGlobalTimeStep(void *GlobalData) const = 0;
168 
176  virtual void * GetGlobalDataPointer() const = 0;
177 
183  virtual void ReleaseGlobalDataPointer(void *GlobalData) const = 0;
184 
185 protected:
188 
189  void PrintSelf(std::ostream & os, Indent indent) const;
190 
193 
194 private:
195  FiniteDifferenceFunction(const Self &); //purposely not implemented
196  void operator=(const Self &); //purposely not implemented
197 };
198 } // end namespace itk
199 
200 #ifndef ITK_MANUAL_INSTANTIATION
202 #endif
203 
204 #endif

Generated at Sat Mar 8 2014 14:37:58 for Orfeo Toolbox with doxygen 1.8.3.1