|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNormalVectorDiffusionFunction_h
19 #define itkNormalVectorDiffusionFunction_h
59 template <
typename TSparseImageType>
75 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
88 using NodeType =
typename Superclass::NodeType;
99 m_NormalProcessType = npt;
106 return m_NormalProcessType;
117 m_ConductanceParameter = cp + static_cast<NodeValueType>(0.001);
120 m_FluxStopConstant = static_cast<NodeValueType>(-1.0 / (m_ConductanceParameter * m_ConductanceParameter));
128 return m_ConductanceParameter;
135 return m_FluxStopConstant;
143 PrecomputeSparseUpdate(NeighborhoodType & it)
const override;
147 ComputeSparseUpdate(NeighborhoodType & it,
void * globalData,
const FloatOffsetType & offset)
const override;
153 PrintSelf(std::ostream & os,
Indent indent)
const override;
167 return static_cast<NodeValueType>(std::exp(m_FluxStopConstant * v));
185 #ifndef ITK_MANUAL_INSTANTIATION
186 # include "itkNormalVectorDiffusionFunction.hxx"
typename ConstNeighborhoodIterator< TSparseImageType >::RadiusType RadiusType
typename Superclass::FloatOffsetType FloatOffsetType
typename Superclass::NodeValueType NodeValueType
typename Superclass::NeighborhoodType NeighborhoodType
A templated class holding a n-Dimensional vector.
void SetConductanceParameter(NodeValueType cp)
Control indentation during Print() invocation.
This class defines the common functionality for Sparse Image neighborhoods of unit vectors.
NodeValueType FluxStopFunction(const NodeValueType v) const
int GetNormalProcessType() const
ImageBaseType::IndexType IndexType
typename SparseImageType::IndexType IndexType
Light weight base class for most itk classes.
void SetNormalProcessType(int npt)
This class defines all the necessary functionality for performing isotropic and anisotropic diffusion...
NodeValueType m_ConductanceParameter
typename Superclass::TimeStepType TimeStepType
typename NodeType::NodeValueType NodeValueType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
NodeValueType GetFluxStopConstant() const
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename SparseImageType::NodeType NodeType
typename Superclass::NeighborhoodScalesType NeighborhoodScalesType
typename Superclass::RadiusType RadiusType
NodeValueType m_FluxStopConstant
typename Superclass::NormalVectorType NormalVectorType
typename Superclass::ImageType SparseImageType
NodeValueType GetConductanceParameter() const