ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::GPUScalarAnisotropicDiffusionFunction< TImage > Class Template Reference

#include <itkGPUScalarAnisotropicDiffusionFunction.h>

Detailed Description

template<typename TImage>
class itk::GPUScalarAnisotropicDiffusionFunction< TImage >

This class forms the base for any GPU anisotropic diffusion function that operates on scalar data (see itkGPUAnisotropicDiffusionFunction).

Definition at line 38 of file itkGPUScalarAnisotropicDiffusionFunction.h.

+ Inheritance diagram for itk::GPUScalarAnisotropicDiffusionFunction< TImage >:
+ Collaboration diagram for itk::GPUScalarAnisotropicDiffusionFunction< TImage >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
typedef TImage ImageType
 
typedef ConstNeighborhoodIterator< TImage, DefaultBoundaryConditionTypeNeighborhoodType
 
typedef typename ImageType::PixelType PixelType
 
using Pointer = SmartPointer<Self>
 
typedef typename ConstNeighborhoodIterator< TImage >::RadiusType RadiusType
 
using Self = GPUScalarAnisotropicDiffusionFunction
 
using Superclass = GPUAnisotropicDiffusionFunction<TImage>
 
typedef double TimeStepType
 
- Public Types inherited from itk::GPUAnisotropicDiffusionFunction< TImage >
using ConstPointer = SmartPointer<const Self>
 
typedef Vector< float, Self::ImageDimensionFloatOffsetType
 
typedef TImage ImageType
 
typedef ConstNeighborhoodIterator< TImage, DefaultBoundaryConditionTypeNeighborhoodType
 
using PixelrealType = typename Superclass::PixelRealType
 
typedef typename ImageType::PixelType PixelType
 
using Pointer = SmartPointer<Self>
 
typedef typename ConstNeighborhoodIterator< TImage >::RadiusType RadiusType
 
using Self = GPUAnisotropicDiffusionFunction
 
using Superclass = GPUFiniteDifferenceFunction<TImage>
 
typedef double TimeStepType
 
- Public Types inherited from itk::GPUFiniteDifferenceFunction< TImage >
using ConstPointer
 
typedef ZeroFluxNeumannBoundaryCondition< ImageTypeDefaultBoundaryConditionType
 
using DefaultBoundaryConditionType
 
using DifferenceFunctionType
 
typedef Vector< float, Self::ImageDimensionFloatOffsetType
 
using FloatOffsetType
 
typedef TImage ImageType
 
using ImageType
 
typedef ConstNeighborhoodIterator< TImage, DefaultBoundaryConditionTypeNeighborhoodType
 
using NeighborhoodType
 
typedef double PixelRealType
 
using PixelRealType
 
typedef typename ImageType::PixelType PixelType
 
using PixelType
 
using Pointer
 
typedef typename ConstNeighborhoodIterator< TImage >::RadiusType RadiusType
 
using RadiusType
 
using Self
 
using Superclass
 
typedef double TimeStepType
 
using TimeStepType
 
- Public Types inherited from itk::FiniteDifferenceFunction< TImage >
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
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

const char * GetNameOfClass () const override
 
void GPUCalculateAverageGradientMagnitudeSquared (TImage *) override
 
 itkGetOpenCLSourceFromKernelMacro (GPUScalarAnisotropicDiffusionFunctionKernel)
 
- Public Member Functions inherited from itk::GPUAnisotropicDiffusionFunction< TImage >
TimeStepType ComputeGlobalTimeStep (void *GlobalData) const override
 
const double & GetAverageGradientMagnitudeSquared () const
 
const double & GetConductanceParameter () const
 
void * GetGlobalDataPointer () const override
 
const TimeStepTypeGetTimeStep () const
 
void ReleaseGlobalDataPointer (void *GlobalData) const override
 
void SetAverageGradientMagnitudeSquared (const double c)
 
void SetConductanceParameter (const double c)
 
void SetTimeStep (const TimeStepType &t)
 
- Public Member Functions inherited from itk::GPUFiniteDifferenceFunction< TImage >
virtual void GPUAllocateMetricData (unsigned int numPixels)
 
virtual void GPUAllocateMetricData (unsigned int numPixels)
 
virtual void GPUComputeUpdate (const typename TImage::Pointer output, typename TImage::Pointer update, void *gd)=0
 
virtual void GPUComputeUpdate (const typename TImage::Pointer output, typename TImage::Pointer update, void *gd)=0
 
virtual void GPUReleaseMetricData ()
 
virtual void GPUReleaseMetricData ()
 
PixelType ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
 
PixelType ComputeUpdate (const NeighborhoodType &neighborhood, void *globalData, const FloatOffsetType &offset=FloatOffsetType(0.0)) override
 
- Public Member Functions inherited from itk::FiniteDifferenceFunction< TImage >
const NeighborhoodScalesType ComputeNeighborhoodScales () const
 
const NeighborhoodScalesType ComputeNeighborhoodScales () const
 
const RadiusTypeGetRadius () const
 
const RadiusTypeGetRadius () const
 
void GetScaleCoefficients (PixelRealType vals[ImageDimension]) const
 
void GetScaleCoefficients (PixelRealType vals[ImageDimension]) const
 
virtual void InitializeIteration ()
 
virtual void InitializeIteration ()
 
void SetRadius (const RadiusType &r)
 
void SetRadius (const RadiusType &r)
 
void SetScaleCoefficients (const PixelRealType vals[ImageDimension])
 
void SetScaleCoefficients (const PixelRealType vals[ImageDimension])
 
- Public Member Functions inherited from itk::LightObject
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 Public Attributes inherited from itk::GPUAnisotropicDiffusionFunction< TImage >
static constexpr unsigned int ImageDimension = Superclass::ImageDimension
 
- Static Public Attributes inherited from itk::GPUFiniteDifferenceFunction< TImage >
static constexpr unsigned int ImageDimension
 
static constexpr unsigned int ImageDimension
 
- Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImage >
static constexpr unsigned int ImageDimension
 
static constexpr unsigned int ImageDimension
 

Protected Member Functions

 GPUScalarAnisotropicDiffusionFunction ()
 
 ~GPUScalarAnisotropicDiffusionFunction () override=default
 
- Protected Member Functions inherited from itk::GPUAnisotropicDiffusionFunction< TImage >
 GPUAnisotropicDiffusionFunction ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~GPUAnisotropicDiffusionFunction () override=default
 
- Protected Member Functions inherited from itk::GPUFiniteDifferenceFunction< TImage >
 GPUFiniteDifferenceFunction ()
 
 GPUFiniteDifferenceFunction ()
 
 ~GPUFiniteDifferenceFunction () override=default
 
 ~GPUFiniteDifferenceFunction () override=default
 
- Protected Member Functions inherited from itk::FiniteDifferenceFunction< TImage >
 FiniteDifferenceFunction ()
 
 FiniteDifferenceFunction ()
 
 ~FiniteDifferenceFunction () override=default
 
 ~FiniteDifferenceFunction () override=default
 
- Protected Member Functions inherited from itk::LightObject
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 Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 
- Protected Attributes inherited from itk::GPUAnisotropicDiffusionFunction< TImage >
GPUDataManager::Pointer m_AnisotropicDiffusionFunctionGPUBuffer {}
 
GPUKernelManager::Pointer m_AnisotropicDiffusionFunctionGPUKernelManager {}
 
int m_AverageGradientMagnitudeSquaredGPUKernelHandle {}
 
- Protected Attributes inherited from itk::GPUFiniteDifferenceFunction< TImage >
int m_ComputeUpdateGPUKernelHandle
 
int m_ComputeUpdateGPUKernelHandle
 
GPUKernelManager::Pointer m_GPUKernelManager
 
GPUKernelManager::Pointer m_GPUKernelManager
 
- Protected Attributes inherited from itk::FiniteDifferenceFunction< TImage >
RadiusType m_Radius
 
RadiusType m_Radius
 
PixelRealType m_ScaleCoefficients [ImageDimension]
 
PixelRealType m_ScaleCoefficients [ImageDimension]
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TImage>
using itk::GPUScalarAnisotropicDiffusionFunction< TImage >::ConstPointer = SmartPointer<const Self>

Definition at line 47 of file itkGPUScalarAnisotropicDiffusionFunction.h.

◆ ImageType

template<typename TImage>

Extract some parameters from the image type

◆ NeighborhoodType

template<typename TImage>

The type of data structure that is passed to this function object to evaluate at a pixel that does not lie on a data set boundary.

◆ PixelType

template<typename TImage>

◆ Pointer

template<typename TImage>
using itk::GPUScalarAnisotropicDiffusionFunction< TImage >::Pointer = SmartPointer<Self>

Definition at line 46 of file itkGPUScalarAnisotropicDiffusionFunction.h.

◆ RadiusType

template<typename TImage>

Neighborhood radius type

◆ Self

Standard class type aliases.

Definition at line 44 of file itkGPUScalarAnisotropicDiffusionFunction.h.

◆ Superclass

◆ TimeStepType

template<typename TImage>

Define the TimeStepType to always be double.

Constructor & Destructor Documentation

◆ GPUScalarAnisotropicDiffusionFunction()

template<typename TImage>
itk::GPUScalarAnisotropicDiffusionFunction< TImage >::GPUScalarAnisotropicDiffusionFunction ( )
protected

Referenced by GetNameOfClass().

◆ ~GPUScalarAnisotropicDiffusionFunction()

template<typename TImage>
itk::GPUScalarAnisotropicDiffusionFunction< TImage >::~GPUScalarAnisotropicDiffusionFunction ( )
overrideprotecteddefault

Member Function Documentation

◆ GetNameOfClass()

template<typename TImage>
const char * itk::GPUScalarAnisotropicDiffusionFunction< TImage >::GetNameOfClass ( ) const
overridevirtual

◆ GPUCalculateAverageGradientMagnitudeSquared()

template<typename TImage>
void itk::GPUScalarAnisotropicDiffusionFunction< TImage >::GPUCalculateAverageGradientMagnitudeSquared ( TImage * )
overridevirtual

Compute average squared gradient of magnitude using the GPU

Implements itk::GPUAnisotropicDiffusionFunction< TImage >.

◆ itkGetOpenCLSourceFromKernelMacro()

template<typename TImage>
itk::GPUScalarAnisotropicDiffusionFunction< TImage >::itkGetOpenCLSourceFromKernelMacro ( GPUScalarAnisotropicDiffusionFunctionKernel )

Get OpenCL Kernel source as a string, creates a GetOpenCLSource method

Member Data Documentation

◆ ImageDimension

template<typename TImage>
unsigned int itk::GPUScalarAnisotropicDiffusionFunction< TImage >::ImageDimension = Superclass::ImageDimension
staticconstexpr

Inherit some parameters from the superclass type.

Definition at line 52 of file itkGPUScalarAnisotropicDiffusionFunction.h.


The documentation for this class was generated from the following file: