ITK
6.0.0
Insight Toolkit
|
#include <itkGPUDenseFiniteDifferenceImageFilter.h>
This is the GPU version of DenseFiniteDifferenceImageFilter class. Currently only single-threaded, single GPU version is implemented. See documentation for FiniteDifferenceImageFilter for an overview of the iterative finite difference algorithm:
Use m_UpdateBuffer defined in CPU superclass (DenseFiniteDifferenceImageFilter).
Definition at line 55 of file itkGPUDenseFiniteDifferenceImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | CPUSuperclass = TParentImageFilter |
using | FiniteDifferenceFunctionType = typename GPUSuperclass::FiniteDifferenceFunctionType |
using | GPUSuperclass = GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter > |
using | InputImageType = typename GPUSuperclass::InputImageType |
using | OutputImageType = typename GPUSuperclass::OutputImageType |
using | PixelType = typename GPUSuperclass::PixelType |
using | Pointer = SmartPointer< Self > |
using | Self = GPUDenseFiniteDifferenceImageFilter |
using | TimeStepType = typename GPUSuperclass::TimeStepType |
using | UpdateBufferType = OutputImageType |
Public Types inherited from itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
using | ConstPointer = SmartPointer< const Self > |
using | CPUSuperclass = TParentImageFilter |
using | FiniteDifferenceFunctionType = typename GPUFiniteDifferenceFunction< TOutputImage >::DifferenceFunctionType |
using | GPUSuperclass = GPUInPlaceImageFilter< TInputImage, TOutputImage, TParentImageFilter > |
using | InputImageType = TInputImage |
using | InputPixelType = typename TInputImage::PixelType |
using | InputPixelValueType = typename NumericTraits< InputPixelType >::ValueType |
using | NeighborhoodScalesType = typename FiniteDifferenceFunctionType::NeighborhoodScalesType |
using | OutputImageType = TOutputImage |
using | OutputPixelType = typename TOutputImage::PixelType |
using | OutputPixelValueType = typename NumericTraits< OutputPixelType >::ValueType |
using | PixelType = OutputPixelType |
using | Pointer = SmartPointer< Self > |
using | RadiusType = typename FiniteDifferenceFunctionType::RadiusType |
using | Self = GPUFiniteDifferenceImageFilter |
using | TimeStepType = typename FiniteDifferenceFunctionType::TimeStepType |
Public Types inherited from itk::GPUInPlaceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
using | ConstPointer = SmartPointer< const Self > |
using | CPUSuperclass = TParentImageFilter |
using | GPUSuperclass = GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename GPUSuperclass::OutputImagePixelType |
using | OutputImagePointer = typename GPUSuperclass::OutputImagePointer |
using | OutputImageRegionType = typename GPUSuperclass::OutputImageRegionType |
using | OutputImageType = typename GPUSuperclass::OutputImageType |
using | Pointer = SmartPointer< Self > |
using | Self = GPUInPlaceImageFilter |
Public Types inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | Pointer = SmartPointer< Self > |
using | Self = GPUImageToImageFilter |
using | Superclass = TParentImageFilter |
Public Member Functions | |
const char * | GetNameOfClass () const override |
itkGetOpenCLSourceFromKernelMacro (GPUDenseFiniteDifferenceImageFilterKernel) | |
Public Member Functions inherited from itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
const FiniteDifferenceFunctionType::Pointer & | GetDifferenceFunction () const override |
const char * | GetNameOfClass () const override |
void | SetStateToInitialized () |
void | SetStateToUninitialized () |
void | SetDifferenceFunction (FiniteDifferenceFunctionType *differenceFunction) override |
virtual void | SetState (GPUFiniteDifferenceFilterEnum _arg) |
virtual const GPUFiniteDifferenceFilterEnum & | GetState () const |
virtual const TimeProbe & | GetInitTime () const |
virtual const TimeProbe & | GetComputeUpdateTime () const |
virtual const TimeProbe & | GetApplyUpdateTime () const |
virtual const TimeProbe & | GetSmoothFieldTime () const |
Public Member Functions inherited from itk::GPUInPlaceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
const char * | GetNameOfClass () const override |
Public Member Functions inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
void | GenerateData () override |
virtual bool | GetGPUEnabled () const |
const char * | GetNameOfClass () const override |
virtual void | GPUEnabledOn () |
virtual void | GraftOutput (const DataObjectIdentifierType &key, typename itk::GPUTraits< TOutputImage >::Type *output) |
virtual void | GraftOutput (typename itk::GPUTraits< TOutputImage >::Type *output) |
virtual void | SetGPUEnabled (bool _arg) |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = GPUSuperclass::ImageDimension |
Static Public Attributes inherited from itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
static constexpr unsigned int | ImageDimension = OutputImageType::ImageDimension |
Static Public Attributes inherited from itk::GPUInPlaceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Protected Attributes | |
int | m_ApplyUpdateGPUKernelHandle {} |
Protected Attributes inherited from itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
TimeProbe | m_ApplyUpdateTime |
TimeProbe | m_ComputeUpdateTime |
TimeProbe | m_InitTime |
TimeProbe | m_SmoothFieldTime {} |
Protected Attributes inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
GPUKernelManager::Pointer | m_GPUKernelManager {} |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::GPUImageToImageFilter< TInputImage, TOutputImage, TParentImageFilter > | |
static Pointer | New () |
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::ConstPointer = SmartPointer<const Self> |
Definition at line 66 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::CPUSuperclass = TParentImageFilter |
Definition at line 64 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::FiniteDifferenceFunctionType = typename GPUSuperclass::FiniteDifferenceFunctionType |
Definition at line 74 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::GPUSuperclass = GPUFiniteDifferenceImageFilter<TInputImage, TOutputImage, TParentImageFilter> |
Definition at line 63 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::InputImageType = typename GPUSuperclass::InputImageType |
Convenient type alias
Definition at line 72 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::OutputImageType = typename GPUSuperclass::OutputImageType |
Definition at line 73 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::PixelType = typename GPUSuperclass::PixelType |
The pixel type of the output image will be used in computations. Inherited from the superclass.
Definition at line 82 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::Pointer = SmartPointer<Self> |
Definition at line 65 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::Self = GPUDenseFiniteDifferenceImageFilter |
Standard class type aliases
Definition at line 62 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::TimeStepType = typename GPUSuperclass::TimeStepType |
The value type of a time step. Inherited from the superclass.
Definition at line 85 of file itkGPUDenseFiniteDifferenceImageFilter.h.
using itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::UpdateBufferType = OutputImageType |
The container type for the update buffer.
Definition at line 88 of file itkGPUDenseFiniteDifferenceImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
This method allocates storage in m_UpdateBuffer. It is called from Superclass::GenerateData().
Implements itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >.
|
overrideprotected |
This method applies changes from the m_UpdateBuffer to the output using the GPU. "dt" is the time step to use for the update of each pixel.
|
overrideprotectedvirtual |
A simple method to copy the data from the input to the output. ( Supports "read-only" image adaptors in the case where the input image type converts to a different output image type. )
Implements itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >.
|
override |
|
inlineoverrideprotected |
Method to allow subclasses to get direct access to the update buffer
Definition at line 129 of file itkGPUDenseFiniteDifferenceImageFilter.h.
|
overrideprotected |
|
overrideprotectedvirtual |
This method populates an update buffer with changes for each pixel in the output using the GPU. Returns value is a time step to be used for the update.
Implements itk::GPUFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >.
itk::GPUDenseFiniteDifferenceImageFilter< TInputImage, TOutputImage, TParentImageFilter >::itkGetOpenCLSourceFromKernelMacro | ( | GPUDenseFiniteDifferenceImageFilterKernel | ) |
Get OpenCL Kernel source as a string, creates a GetOpenCLSource method
|
overrideprotected |
|
staticconstexpr |
Dimensionality of input and output data is assumed to be the same. It is inherited from the superclass.
Definition at line 78 of file itkGPUDenseFiniteDifferenceImageFilter.h.
|
protected |
Definition at line 140 of file itkGPUDenseFiniteDifferenceImageFilter.h.