![]() |
ITK
5.1.0
Insight Toolkit
|
#include <itkGPUAnisotropicDiffusionFunction.h>
Public Member Functions | |
TimeStepType | ComputeGlobalTimeStep (void *) const override |
const double & | GetAverageGradientMagnitudeSquared () const |
const double & | GetConductanceParameter () const |
void * | GetGlobalDataPointer () const override |
virtual const char * | GetNameOfClass () const |
const TimeStepType & | GetTimeStep () const |
virtual void | GPUCalculateAverageGradientMagnitudeSquared (ImageType *)=0 |
void | ReleaseGlobalDataPointer (void *) const override |
void | SetAverageGradientMagnitudeSquared (const double &c) |
void | SetConductanceParameter (const double &c) |
void | SetTimeStep (const TimeStepType &t) |
![]() | |
PixelType | ComputeUpdate (const NeighborhoodType &, void *, const FloatOffsetType &) override |
virtual void | GPUComputeUpdate (const typename TImage ::Pointer output, typename TImage ::Pointer update, void *gd)=0 |
virtual void | GPUAllocateMetricData (unsigned int) |
virtual void | GPUReleaseMetricData () |
![]() | |
const NeighborhoodScalesType | ComputeNeighborhoodScales () const |
const RadiusType & | GetRadius () const |
void | GetScaleCoefficients (PixelRealType vals[ImageDimension]) const |
virtual void | InitializeIteration () |
void | SetRadius (const RadiusType &r) |
void | SetScaleCoefficients (PixelRealType vals[ImageDimension]) |
![]() | |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
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 | |
GPUAnisotropicDiffusionFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~GPUAnisotropicDiffusionFunction () override=default | |
![]() | |
GPUFiniteDifferenceFunction () | |
~GPUFiniteDifferenceFunction () override=default | |
![]() | |
FiniteDifferenceFunction () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~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 () |
Protected Attributes | |
GPUDataManager::Pointer | m_AnisotropicDiffusionFunctionGPUBuffer |
GPUKernelManager::Pointer | m_AnisotropicDiffusionFunctionGPUKernelManager |
int | m_AverageGradientMagnitudeSquaredGPUKernelHandle |
![]() | |
GPUKernelManager::Pointer | m_GPUKernelManager |
int | m_ComputeUpdateGPUKernelHandle |
![]() | |
RadiusType | m_Radius |
PixelRealType | m_ScaleCoefficients [ImageDimension] |
![]() | |
std::atomic< int > | m_ReferenceCount |
Private Attributes | |
double | m_AverageGradientMagnitudeSquared |
double | m_ConductanceParameter |
TimeStepType | m_TimeStep |
Additional Inherited Members | |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
This is the GPU version of AnisotropicDiffusionFunction class.
Definition at line 38 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 47 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::FloatOffsetType = typename Superclass::FloatOffsetType |
Definition at line 59 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::ImageType = typename Superclass::ImageType |
Inherit some parameters from the superclass type
Definition at line 53 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::NeighborhoodType = typename Superclass::NeighborhoodType |
Definition at line 57 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::PixelrealType = typename Superclass::PixelRealType |
Definition at line 55 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::PixelType = typename Superclass::PixelType |
Definition at line 54 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::Pointer = SmartPointer<Self> |
Definition at line 46 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::RadiusType = typename Superclass::RadiusType |
Definition at line 56 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::Self = GPUAnisotropicDiffusionFunction |
Standard class type aliases.
Definition at line 44 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::Superclass = GPUFiniteDifferenceFunction<TImage> |
Definition at line 45 of file itkGPUAnisotropicDiffusionFunction.h.
using itk::GPUAnisotropicDiffusionFunction< TImage >::TimeStepType = typename Superclass::TimeStepType |
Definition at line 58 of file itkGPUAnisotropicDiffusionFunction.h.
|
inlineprotected |
|
overrideprotecteddefault |
|
inlineoverridevirtual |
Returns the time step supplied by the user. We don't need to use the global data supplied since we are returning a fixed value.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 116 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::GetTimeStep().
|
inline |
Set/Get the average gradient magnitude squared.
Definition at line 102 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_AverageGradientMagnitudeSquared.
|
inline |
Definition at line 95 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_ConductanceParameter.
|
inlineoverridevirtual |
The anisotropic diffusion classes don't use this particular parameter so it's safe to return a null value.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 124 of file itkGPUAnisotropicDiffusionFunction.h.
|
virtual |
Run-time type information (and related methods)
Reimplemented from itk::GPUFiniteDifferenceFunction< TImage >.
Reimplemented in itk::GPUGradientNDAnisotropicDiffusionFunction< TImage >, and itk::GPUScalarAnisotropicDiffusionFunction< TImage >.
|
inline |
Definition at line 82 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_TimeStep.
Referenced by itk::GPUAnisotropicDiffusionFunction< TImage >::ComputeGlobalTimeStep().
|
pure virtual |
This method is called before each iteration. It calculates a scalar value that is the average of the gradient magnitude squared at each pixel in the output image (intermediate solution). The average gradient magnitude value is typically used in the anisotropic diffusion equations to calibrate the conductance term.
|
inlineoverrideprotectedvirtual |
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::LightObject.
Definition at line 147 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_ConductanceParameter, itk::GPUAnisotropicDiffusionFunction< TImage >::m_TimeStep, and itk::FiniteDifferenceFunction< TImage >::PrintSelf().
|
inlineoverridevirtual |
Does nothing. No global data is used in this class of equations.
Implements itk::FiniteDifferenceFunction< TImage >.
Definition at line 131 of file itkGPUAnisotropicDiffusionFunction.h.
|
inline |
Definition at line 108 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_AverageGradientMagnitudeSquared.
|
inline |
Set/Get the conductance parameter. The conductance parameter.
Definition at line 89 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_ConductanceParameter.
|
inline |
Set/Get the time step. For this class of anisotropic diffusion filters, the time-step is supplied by the user and remains fixed for all updates.
Definition at line 76 of file itkGPUAnisotropicDiffusionFunction.h.
References itk::GPUAnisotropicDiffusionFunction< TImage >::m_TimeStep.
|
staticconstexpr |
Inherit some parameters from the superclass type
Definition at line 62 of file itkGPUAnisotropicDiffusionFunction.h.
|
protected |
Definition at line 155 of file itkGPUAnisotropicDiffusionFunction.h.
|
protected |
Definition at line 156 of file itkGPUAnisotropicDiffusionFunction.h.
|
private |
Definition at line 162 of file itkGPUAnisotropicDiffusionFunction.h.
Referenced by itk::GPUAnisotropicDiffusionFunction< TImage >::GetAverageGradientMagnitudeSquared(), itk::GPUAnisotropicDiffusionFunction< TImage >::GPUAnisotropicDiffusionFunction(), and itk::GPUAnisotropicDiffusionFunction< TImage >::SetAverageGradientMagnitudeSquared().
|
protected |
Definition at line 159 of file itkGPUAnisotropicDiffusionFunction.h.
|
private |
Definition at line 163 of file itkGPUAnisotropicDiffusionFunction.h.
Referenced by itk::GPUAnisotropicDiffusionFunction< TImage >::GetConductanceParameter(), itk::GPUAnisotropicDiffusionFunction< TImage >::GPUAnisotropicDiffusionFunction(), itk::GPUAnisotropicDiffusionFunction< TImage >::PrintSelf(), and itk::GPUAnisotropicDiffusionFunction< TImage >::SetConductanceParameter().
|
private |
Definition at line 164 of file itkGPUAnisotropicDiffusionFunction.h.
Referenced by itk::GPUAnisotropicDiffusionFunction< TImage >::GetTimeStep(), itk::GPUAnisotropicDiffusionFunction< TImage >::GPUAnisotropicDiffusionFunction(), itk::GPUAnisotropicDiffusionFunction< TImage >::PrintSelf(), and itk::GPUAnisotropicDiffusionFunction< TImage >::SetTimeStep().