18 #ifndef __itkGPUMeanImageFilter_h
19 #define __itkGPUMeanImageFilter_h
41 template<
class TInputImage,
class 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;
87 virtual void GPUGenerateData();
91 void operator=(
const Self &);
114 return "A Factory for GPUMeanImageFilter";
119 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() ); \
180 #include "itkGPUMeanImageFilter.hxx"