18 #ifndef __itkNormalVectorDiffusionFunction_h
19 #define __itkNormalVectorDiffusionFunction_h
59 template<
class TSparseImageType >
74 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
87 typedef typename Superclass::NodeType
NodeType;
95 void SetNormalProcessType(
int npt)
96 { m_NormalProcessType = npt; }
99 int GetNormalProcessType()
const
100 {
return m_NormalProcessType; }
109 m_ConductanceParameter = cp +
static_cast< NodeValueType >( 0.001 );
113 ( -1.0 / ( m_ConductanceParameter * m_ConductanceParameter ) );
119 {
return m_ConductanceParameter; }
123 {
return m_FluxStopConstant; }
129 virtual void PrecomputeSparseUpdate(NeighborhoodType & it)
const;
132 virtual NormalVectorType ComputeSparseUpdate(NeighborhoodType & neighborhood,
134 const FloatOffsetType & offset)
const;
139 void PrintSelf(std::ostream & os,
Indent indent)
const;
147 else {
return static_cast< NodeValueType >( vcl_exp(m_FluxStopConstant * v) ); }
163 void operator=(
const Self &);
167 #ifndef ITK_MANUAL_INSTANTIATION
168 #include "itkNormalVectorDiffusionFunction.hxx"