18 #ifndef itkGPUMeanImageFilter_h
19 #define itkGPUMeanImageFilter_h
41 template<
typename TInputImage,
typename TOutputImage >
46 public GPUBoxImageFilter< TInputImage, TOutputImage, MeanImageFilter< TInputImage, TOutputImage > >
72 itkStaticConstMacro(InputImageDimension,
unsigned int,
73 TInputImage::ImageDimension);
74 itkStaticConstMacro(OutputImageDimension,
unsigned int,
75 TOutputImage::ImageDimension);
79 itkGetOpenCLSourceFromKernelMacro(GPUMeanImageFilterKernel);
85 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
87 virtual
void GPUGenerateData() ITK_OVERRIDE;
92 int m_MeanFilterGPUKernelHandle;
115 return "A Factory for GPUMeanImageFilter";
120 itkFactorylessNewMacro(Self);
136 #define OverrideMeanFilterTypeMacro(ipt,opt,dm) \
138 typedef Image<ipt,dm> InputImageType; \
139 typedef Image<opt,dm> OutputImageType; \
140 this->RegisterOverride( \
141 typeid(MeanImageFilter<InputImageType,OutputImageType>).name(), \
142 typeid(GPUMeanImageFilter<InputImageType,OutputImageType>).name(), \
143 "GPU Mean Image Filter Override", \
145 CreateObjectFunction<GPUMeanImageFilter<InputImageType,OutputImageType> >::New() ); \
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "itkGPUMeanImageFilter.hxx"
ObjectFactoryBase Superclass
A base class for all the GPU filters working on a box neighborhood.
InputImageType::PixelType InputImagePixelType
#define ITK_SOURCE_VERSION
GPUMeanImageFilterFactory()
InputImageType::Pointer InputImagePointer
Base class for all process objects that output image data.
Create instances of classes using an object factory.
itkGPUKernelClassMacro(GPUImageOpsKernel)
SmartPointer< const Self > ConstPointer
Superclass::OutputImageRegionType OutputImageRegionType
InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
SmartPointer< Self > Pointer
#define OverrideMeanFilterTypeMacro(ipt, opt, dm)
InputImageType::ConstPointer InputImageConstPointer
GPUMeanImageFilterFactory Self
const char * GetDescription() const override
SmartPointer< const Self > ConstPointer
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
Superclass::OutputImagePixelType OutputImagePixelType
virtual const char * GetITKSourceVersion() const override
Control indentation during Print() invocation.
Object Factory implemenatation for GPUMeanImageFilter.
GPU-enabled implementation of the MeanImageFilter.
static void RegisterOneFactory(void)
SmartPointer< Self > Pointer
GPUBoxImageFilter< TInputImage, TOutputImage, MeanImageFilter< TInputImage, TOutputImage > > Superclass