14 #ifndef __itkCUDAResamplerImageFilter_h
15 #define __itkCUDAResamplerImageFilter_h
18 #include "itkResampleImageFilter.h"
21 #include "itkBSplineDeformableTransform.h"
22 #include "cudaResampleImageFilter.cuh"
39 template<
typename TInputImage,
typename TOutputImage,
typename TInterpolatorPrecisionType =
float >
41 public ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >
47 typedef ResampleImageFilter<
48 TInputImage, TOutputImage, TInterpolatorPrecisionType >
Superclass;
71 typedef typename Superclass::SizeType
SizeType;
89 typedef BSplineDeformableTransform<
91 typedef cuda::CUDAResampleImageFilter<
92 typename InternalBSplineTransformType::ParametersValueType,
96 itkSetMacro( UseCuda,
bool );
97 itkGetConstMacro( UseCuda,
bool );
98 itkBooleanMacro( UseCuda );
101 itkSetMacro( UseGPUToCastData,
bool );
102 itkGetConstMacro( UseGPUToCastData,
bool );
103 itkBooleanMacro( UseGPUToCastData );
106 itkSetMacro( UseFastCUDAKernel,
bool );
107 itkGetConstMacro( UseFastCUDAKernel,
bool );
108 itkBooleanMacro( UseFastCUDAKernel );
111 virtual void GenerateData(
void );
122 this->m_Warnings.resize( 0 );
128 std::string warnings =
"\n---------------------------------\n";
129 for( std::size_t i = 0; i < this->m_Warnings.size(); i++ )
131 warnings +=
"itkCUDAResampleImageFilter: " + this->m_Warnings[ i ];
132 warnings +=
"\n---------------------------------\n";
143 return this->m_WarningReport;
152 virtual void CheckForValidConfiguration( ValidTransformPointer & bSplineTransform );
173 bool CheckForValidInterpolator(
void )
const;
191 #ifndef ITK_MANUAL_INSTANTIATION
192 #include "itkCUDAResampleImageFilter.hxx"
195 #endif // end #ifndef __itkCUDAResamplerImageFilter_h
Superclass::DirectionType DirectionType
Superclass::OutputImageType OutputImageType
Superclass::TransformPointerType TransformPointerType
Superclass::InterpolatorPointerType InterpolatorPointerType
Resample an image on the GPU via a coordinate transform.
Superclass::InputImageRegionType InputImageRegionType
SmartPointer< Self > Pointer
Superclass::ImageBaseType ImageBaseType
Superclass::PixelType PixelType
BSplineDeformableTransform< TInterpolatorPrecisionType, 3, 3 > InternalBSplineTransformType
Superclass::InputImagePointer InputImagePointer
virtual const WarningReportType & GetWarningReport(void) const
CudaResampleImageFilterType m_CudaResampleImageFilter
InternalAdvancedBSplineTransformType::ConstPointer ValidTransformConstPointer
WarningReportType m_WarningReport
AdvancedCombinationTransform< TInterpolatorPrecisionType, 3 > InternalComboTransformType
InternalAdvancedBSplineTransformType::Pointer ValidTransformPointer
void ResetWarningReport(void)
std::vector< std::string > m_Warnings
Superclass::OutputImagePointer OutputImagePointer
Superclass::SizeType SizeType
std::string GetWarningReportAsString(void) const
Superclass::IndexType IndexType
Superclass::InputImageType InputImageType
itkCUDAResampleImageFilter Self
Superclass::PointType PointType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass::OriginPointType OriginPointType
Superclass::OutputImageRegionType OutputImageRegionType
Superclass::SpacingType SpacingType
SmartPointer< const Self > ConstPointer
Superclass::InputPixelType InputPixelType
AdvancedBSplineDeformableTransform< TInterpolatorPrecisionType, 3, 3 > InternalAdvancedBSplineTransformType
Superclass::TransformType TransformType
Superclass::InterpolatorType InterpolatorType
cuda::CUDAResampleImageFilter< typename InternalBSplineTransformType::ParametersValueType, typename TInputImage::PixelType, float > CudaResampleImageFilterType
ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType > Superclass