go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType > Class Template Reference

#include <itkCUDAResampleImageFilter.h>

Inheritance diagram for itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >:
Inheritance graph
[legend]
Collaboration diagram for itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >:
Collaboration graph
[legend]

Data Structures

class  WarningReportType
 

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef
cuda::CUDAResampleImageFilter
< typename
InternalBSplineTransformType::ParametersValueType,
typename
TInputImage::PixelType, float
CudaResampleImageFilterType
 
typedef Superclass::DirectionType DirectionType
 
typedef Superclass::ImageBaseType ImageBaseType
 
typedef Superclass::IndexType IndexType
 
typedef
Superclass::InputImageConstPointer 
InputImageConstPointer
 
typedef
Superclass::InputImagePointer 
InputImagePointer
 
typedef
Superclass::InputImageRegionType 
InputImageRegionType
 
typedef Superclass::InputImageType InputImageType
 
typedef Superclass::InputPixelType InputPixelType
 
typedef
AdvancedBSplineDeformableTransform
< TInterpolatorPrecisionType, 3, 3 > 
InternalAdvancedBSplineTransformType
 
typedef
BSplineDeformableTransform
< TInterpolatorPrecisionType, 3, 3 > 
InternalBSplineTransformType
 
typedef
AdvancedCombinationTransform
< TInterpolatorPrecisionType, 3 > 
InternalComboTransformType
 
typedef
Superclass::InterpolatorPointerType 
InterpolatorPointerType
 
typedef
Superclass::InterpolatorType 
InterpolatorType
 
typedef Superclass::OriginPointType OriginPointType
 
typedef
Superclass::OutputImagePointer 
OutputImagePointer
 
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
 
typedef Superclass::OutputImageType OutputImageType
 
typedef Superclass::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef itkCUDAResampleImageFilter Self
 
typedef Superclass::SizeType SizeType
 
typedef Superclass::SpacingType SpacingType
 
typedef ResampleImageFilter
< TInputImage, TOutputImage,
TInterpolatorPrecisionType > 
Superclass
 
typedef
Superclass::TransformPointerType 
TransformPointerType
 
typedef Superclass::TransformType TransformType
 
typedef
InternalAdvancedBSplineTransformType::ConstPointer 
ValidTransformConstPointer
 
typedef
InternalAdvancedBSplineTransformType::Pointer 
ValidTransformPointer
 

Public Member Functions

virtual void GenerateData (void)
 
virtual const char * GetClassName () const
 
virtual bool GetUseCuda () const
 
virtual bool GetUseFastCUDAKernel () const
 
virtual bool GetUseGPUToCastData () const
 
virtual const WarningReportTypeGetWarningReport (void) const
 
virtual void SetUseCuda (bool _arg)
 
virtual void SetUseFastCUDAKernel (bool _arg)
 
virtual void SetUseGPUToCastData (bool _arg)
 
virtual void UseCudaOff ()
 
virtual void UseCudaOn ()
 
virtual void UseFastCUDAKernelOff ()
 
virtual void UseFastCUDAKernelOn ()
 
virtual void UseGPUToCastDataOff ()
 
virtual void UseGPUToCastDataOn ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

virtual void CheckForValidConfiguration (ValidTransformPointer &bSplineTransform)
 
 itkCUDAResampleImageFilter ()
 
 ~itkCUDAResampleImageFilter ()
 

Private Member Functions

bool CheckForValidDirectionCosines (ValidTransformPointer bSplineTransform)
 
bool CheckForValidInterpolator (void) const
 
bool CheckForValidTransform (ValidTransformPointer &bSplineTransform) const
 
void CopyParameters (ValidTransformPointer bSplineTransform)
 

Private Attributes

CudaResampleImageFilterType m_CudaResampleImageFilter
 
bool m_UseCuda
 
bool m_UseFastCUDAKernel
 
bool m_UseGPUToCastData
 
WarningReportType m_WarningReport
 

Detailed Description

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
class itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >

Resample an image on the GPU via a coordinate transform.

This class is an ITK wrap around a pure CUDA resampling class.

Warning
The implementation is currently very limited: only a single third order B-spline transform is supported for 3D images together with third order B-spline interpolation.

Definition at line 40 of file itkCUDAResampleImageFilter.h.

Member Typedef Documentation

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef SmartPointer<const Self> itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ConstPointer

Definition at line 49 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef cuda::CUDAResampleImageFilter< typename InternalBSplineTransformType::ParametersValueType, typename TInputImage::PixelType, float > itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CudaResampleImageFilterType

Definition at line 92 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::DirectionType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::DirectionType

Definition at line 78 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::ImageBaseType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ImageBaseType

Definition at line 79 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::IndexType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::IndexType

Definition at line 71 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InputImageConstPointer itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageConstPointer

Definition at line 61 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InputImagePointer itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImagePointer

Definition at line 60 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InputImageRegionType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageRegionType

Definition at line 63 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InputImageType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputImageType

Typedefs from Superclass.

Definition at line 55 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InputPixelType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InputPixelType

Definition at line 74 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef AdvancedBSplineDeformableTransform< TInterpolatorPrecisionType, 3, 3 > itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalAdvancedBSplineTransformType

Definition at line 85 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef BSplineDeformableTransform< TInterpolatorPrecisionType, 3, 3 > itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalBSplineTransformType

Definition at line 89 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef AdvancedCombinationTransform< TInterpolatorPrecisionType, 3 > itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InternalComboTransformType

Typedefs.

Definition at line 83 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InterpolatorPointerType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorPointerType

Definition at line 68 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::InterpolatorType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::InterpolatorType

Definition at line 67 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::OriginPointType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OriginPointType

Definition at line 77 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::OutputImagePointer itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImagePointer

Definition at line 62 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::OutputImageRegionType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageRegionType

Definition at line 75 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::OutputImageType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::OutputImageType

Definition at line 59 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::PixelType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PixelType

Definition at line 73 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef SmartPointer<Self> itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Pointer

Definition at line 48 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::PointType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::PointType

Definition at line 72 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef itkCUDAResampleImageFilter itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Self

Standard class typedefs.

Definition at line 45 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::SizeType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SizeType

Definition at line 70 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::SpacingType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SpacingType

Definition at line 76 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef ResampleImageFilter< TInputImage,TOutputImage,TInterpolatorPrecisionType> itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::Superclass

Definition at line 47 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::TransformPointerType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformPointerType

Definition at line 66 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef Superclass::TransformType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::TransformType

Definition at line 65 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef InternalAdvancedBSplineTransformType::ConstPointer itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ValidTransformConstPointer

Definition at line 87 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
typedef InternalAdvancedBSplineTransformType::Pointer itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::ValidTransformPointer

Definition at line 86 of file itkCUDAResampleImageFilter.h.

Constructor & Destructor Documentation

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::itkCUDAResampleImageFilter ( )
protected
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::~itkCUDAResampleImageFilter ( )
protected

Member Function Documentation

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CheckForValidConfiguration ( ValidTransformPointer bSplineTransform)
protectedvirtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CheckForValidDirectionCosines ( ValidTransformPointer  bSplineTransform)
private

Helper function to check for a valid direction cosines. Currently, only GPU resampling using identity cosines is supported.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CheckForValidInterpolator ( void  ) const
private

Helper function to check for a valid interpolator. Currently, only GPU resampling using 3-rd order B-spline interpolation is supported.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CheckForValidTransform ( ValidTransformPointer bSplineTransform) const
private

Helper function to check for a valid transform. Currently, only GPU resampling of 3D images for 3-rd order B-splines is supported, and only for one transform, so no concatenations.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::CopyParameters ( ValidTransformPointer  bSplineTransform)
private

Helper function to copy data.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GenerateData ( void  )
virtual

Implements GPU resampling.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual const char* itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented in elastix::CUDAResampler< TElastix >.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetUseCuda ( ) const
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetUseFastCUDAKernel ( ) const
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetUseGPUToCastData ( ) const
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual const WarningReportType& itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::GetWarningReport ( void  ) const
inlinevirtual

Definition at line 134 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
static Pointer itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetUseCuda ( bool  _arg)
virtual

Set whether to use the GPU.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetUseFastCUDAKernel ( bool  _arg)
virtual

Set whether to use the fast or the accurate CUDA kernel.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::SetUseGPUToCastData ( bool  _arg)
virtual

Set whether to use the GPU for casting (or the CPU).

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseCudaOff ( )
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseCudaOn ( )
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseFastCUDAKernelOff ( )
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseFastCUDAKernelOn ( )
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseGPUToCastDataOff ( )
virtual
template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
virtual void itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::UseGPUToCastDataOn ( )
virtual

Field Documentation

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
CudaResampleImageFilterType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_CudaResampleImageFilter
private

Definition at line 152 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_UseCuda
private

Private members.

Definition at line 148 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_UseFastCUDAKernel
private

Definition at line 150 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
bool itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_UseGPUToCastData
private

Definition at line 149 of file itkCUDAResampleImageFilter.h.

template<typename TInputImage, typename TOutputImage, typename TInterpolatorPrecisionType = float>
WarningReportType itk::itkCUDAResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >::m_WarningReport
private

Definition at line 153 of file itkCUDAResampleImageFilter.h.



Generated on 27-06-2013 for elastix by doxygen 1.8.3.1 elastix logo