#include <itkFiniteDifferenceSparseImageFunction.h>
This is the base class for function classes that can be used with filters derived from FiniteDifferenceSparseImageFilter.
Definition at line 47 of file itkFiniteDifferenceSparseImageFunction.h.
Public Types | |
using | ConstPointer = SmartPointer<const Self> |
using | IndexType = typename SparseImageType::IndexType |
using | NodeDataType = typename NodeType::NodeDataType |
using | NodeType = typename SparseImageType::NodeType |
using | Pointer = SmartPointer<Self> |
using | Self = FiniteDifferenceSparseImageFunction |
using | SparseImageType = typename Superclass::ImageType |
using | Superclass = FiniteDifferenceFunction<TSparseImageType> |
![]() | |
using | ConstPointer |
using | DefaultBoundaryConditionType |
using | FloatOffsetType |
using | ImageType |
using | NeighborhoodScalesType |
using | NeighborhoodType |
using | PixelRealType |
using | PixelType |
using | Pointer |
using | RadiusType |
using | Self |
using | Superclass |
using | TimeStepType |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | Pointer = SmartPointer<Self> |
using | Self = LightObject |
Public Member Functions | |
virtual NodeDataType | ComputeSparseUpdate (NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) const =0 |
PixelType | ComputeUpdate (const NeighborhoodType &, void *, const FloatOffsetType &) override |
const char * | GetNameOfClass () const override |
virtual void | PrecomputeSparseUpdate (NeighborhoodType &) const |
![]() | |
virtual TimeStepType | ComputeGlobalTimeStep (void *GlobalData) const=0 |
virtual TimeStepType | ComputeGlobalTimeStep (void *GlobalData) const=0 |
const NeighborhoodScalesType | ComputeNeighborhoodScales () const |
const NeighborhoodScalesType | ComputeNeighborhoodScales () const |
virtual void * | GetGlobalDataPointer () const=0 |
virtual void * | GetGlobalDataPointer () const=0 |
const RadiusType & | GetRadius () const |
const RadiusType & | GetRadius () const |
void | GetScaleCoefficients (PixelRealType vals[ImageDimension]) const |
void | GetScaleCoefficients (PixelRealType vals[ImageDimension]) const |
virtual void | InitializeIteration () |
virtual void | InitializeIteration () |
virtual void | ReleaseGlobalDataPointer (void *GlobalData) const=0 |
virtual void | ReleaseGlobalDataPointer (void *GlobalData) const=0 |
void | SetRadius (const RadiusType &r) |
void | SetRadius (const RadiusType &r) |
void | SetScaleCoefficients (const PixelRealType vals[ImageDimension]) |
void | SetScaleCoefficients (const PixelRealType vals[ImageDimension]) |
![]() | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
![]() | |
static constexpr unsigned int | ImageDimension |
static constexpr unsigned int | ImageDimension |
Protected Member Functions | |
FiniteDifferenceSparseImageFunction ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~FiniteDifferenceSparseImageFunction () override=default | |
![]() | |
FiniteDifferenceFunction () | |
FiniteDifferenceFunction () | |
~FiniteDifferenceFunction () override=default | |
~FiniteDifferenceFunction () override=default | |
![]() | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Additional Inherited Members | |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
![]() | |
RadiusType | m_Radius |
RadiusType | m_Radius |
PixelRealType | m_ScaleCoefficients [ImageDimension] |
PixelRealType | m_ScaleCoefficients [ImageDimension] |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::ConstPointer = SmartPointer<const Self> |
Definition at line 56 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::IndexType = typename SparseImageType::IndexType |
The index type for the sparse image.
Definition at line 73 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::NodeDataType = typename NodeType::NodeDataType |
The type for the variables of NodeType. Scalar or vector.
Definition at line 79 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::NodeType = typename SparseImageType::NodeType |
The actual type of nodes stored the sparse image.
Definition at line 76 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::Pointer = SmartPointer<Self> |
Definition at line 55 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::Self = FiniteDifferenceSparseImageFunction |
Standard class type alias.
Definition at line 53 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::SparseImageType = typename Superclass::ImageType |
Definition at line 70 of file itkFiniteDifferenceSparseImageFunction.h.
using itk::FiniteDifferenceSparseImageFunction< TSparseImageType >::Superclass = FiniteDifferenceFunction<TSparseImageType> |
Definition at line 54 of file itkFiniteDifferenceSparseImageFunction.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
pure virtual |
The update called from the FiniteDifferenceSparseImageFilter. This function replaces the ComputeUpdate function.
Implemented in itk::NormalVectorDiffusionFunction< TSparseImageType >, itk::NormalVectorDiffusionFunction< SparseImageType >, and itk::NormalVectorDiffusionFunction< SparseImageType >.
|
inlineoverridevirtual |
This function is not called from the FiniteDifferenceSparseImageFilter class because we need to work with neighborhoods of pointers to data variables instead of neighborhoods of data directly. This function is replaced by the ComputeSparseUpdate function.
Implements itk::FiniteDifferenceFunction< TSparseImageType >.
Definition at line 86 of file itkFiniteDifferenceSparseImageFunction.h.
|
overridevirtual |
Reimplemented from itk::FiniteDifferenceFunction< TSparseImageType >.
Reimplemented in itk::NormalVectorDiffusionFunction< TSparseImageType >, itk::NormalVectorDiffusionFunction< SparseImageType >, itk::NormalVectorDiffusionFunction< SparseImageType >, itk::NormalVectorFunctionBase< TSparseImageType >, itk::NormalVectorFunctionBase< SparseOutputImageType >, and itk::NormalVectorFunctionBase< SparseOutputImageType >.
|
inlinevirtual |
This function provides support for a 2 step update computation that avoids repetitive computation. FiniteDifferenceSparseImageFilter first calls this function for all active pixels in the SparseImage class, then calls ComputeSparseUpdate for the same set of pixels. This is used in NormalVectorDiffusionFunction to calculate flux variables which are then used to compute the updates. Intermediate variables such as the flux in the above examples are stored in the nodes of the SparseImage itself. Therefore, this function will have to know about the NodeType it is dealing with. This function does nothing by default.
Reimplemented in itk::NormalVectorDiffusionFunction< TSparseImageType >, itk::NormalVectorDiffusionFunction< SparseImageType >, and itk::NormalVectorDiffusionFunction< SparseImageType >.
Definition at line 108 of file itkFiniteDifferenceSparseImageFunction.h.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::FiniteDifferenceFunction< TSparseImageType >.
Reimplemented in itk::NormalVectorDiffusionFunction< TSparseImageType >, itk::NormalVectorDiffusionFunction< SparseImageType >, itk::NormalVectorDiffusionFunction< SparseImageType >, itk::NormalVectorFunctionBase< TSparseImageType >, itk::NormalVectorFunctionBase< SparseOutputImageType >, and itk::NormalVectorFunctionBase< SparseOutputImageType >.
|
staticconstexpr |
The image dimension.
Definition at line 62 of file itkFiniteDifferenceSparseImageFunction.h.