18 #ifndef __itkCUDAResamplerImageFilter_h 19 #define __itkCUDAResamplerImageFilter_h 22 #include "itkResampleImageFilter.h" 25 #include "itkBSplineDeformableTransform.h" 26 #include "cudaResampleImageFilter.cuh" 43 template<
typename TInputImage,
typename TOutputImage,
typename TInterpolatorPrecisionType =
float >
45 public ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >
51 typedef ResampleImageFilter<
52 TInputImage, TOutputImage, TInterpolatorPrecisionType >
Superclass;
75 typedef typename Superclass::SizeType
SizeType;
93 typedef BSplineDeformableTransform<
95 typedef cuda::CUDAResampleImageFilter<
96 typename InternalBSplineTransformType::ParametersValueType,
100 itkSetMacro( UseCuda,
bool );
101 itkGetConstMacro( UseCuda,
bool );
102 itkBooleanMacro( UseCuda );
105 itkSetMacro( UseGPUToCastData,
bool );
106 itkGetConstMacro( UseGPUToCastData,
bool );
107 itkBooleanMacro( UseGPUToCastData );
110 itkSetMacro( UseFastCUDAKernel,
bool );
111 itkGetConstMacro( UseFastCUDAKernel,
bool );
112 itkBooleanMacro( UseFastCUDAKernel );
115 virtual void GenerateData(
void );
126 this->m_Warnings.resize( 0 );
132 std::string warnings =
"\n---------------------------------\n";
133 for( std::size_t i = 0; i < this->m_Warnings.size(); i++ )
135 warnings +=
"itkCUDAResampleImageFilter: " + this->m_Warnings[ i ];
136 warnings +=
"\n---------------------------------\n";
147 return this->m_WarningReport;
156 virtual void CheckForValidConfiguration( ValidTransformPointer & bSplineTransform );
172 bool CheckForValidTransform( ValidTransformPointer & bSplineTransform )
const;
177 bool CheckForValidInterpolator(
void )
const;
182 bool CheckForValidDirectionCosines( ValidTransformPointer bSplineTransform );
187 void CopyParameters( ValidTransformPointer bSplineTransform );
195 #ifndef ITK_MANUAL_INSTANTIATION 196 #include "itkCUDAResampleImageFilter.hxx" 199 #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