18 #ifndef __itkGPUAnisotropicDiffusionFunction_h
19 #define __itkGPUAnisotropicDiffusionFunction_h
37 template<
class TImage >
53 typedef typename Superclass::ImageType
ImageType;
62 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
69 virtual void GPUCalculateAverageGradientMagnitudeSquared(
ImageType *) = 0;
85 void SetConductanceParameter(
const double & c)
87 m_ConductanceParameter = c;
90 const double & GetConductanceParameter()
const
92 return m_ConductanceParameter;
96 const double & GetAverageGradientMagnitudeSquared()
const
98 return m_AverageGradientMagnitudeSquared;
101 void SetAverageGradientMagnitudeSquared(
const double & c)
103 m_AverageGradientMagnitudeSquared = c;
108 virtual TimeStepType ComputeGlobalTimeStep(
void *itkNotUsed(GlobalData) )
const
110 return this->GetTimeStep();
115 virtual void * GetGlobalDataPointer()
const
121 virtual void ReleaseGlobalDataPointer(
void *itkNotUsed(GlobalData) )
const
129 m_AverageGradientMagnitudeSquared = 0.0;
130 m_ConductanceParameter = 1.0;
137 void PrintSelf(std::ostream & os,
Indent indent)
const
139 Superclass::PrintSelf(os, indent);
140 os << indent <<
"TimeStep: " << m_TimeStep << std::endl;
141 os << indent <<
"ConductanceParameter: " << m_ConductanceParameter
154 void operator=(
const Self &);