18 #ifndef itkGPUMeanImageFilter_h
19 #define itkGPUMeanImageFilter_h
41 template<
typename TInputImage,
typename TOutputImage >
46 public GPUBoxImageFilter< TInputImage, TOutputImage, MeanImageFilter< TInputImage, TOutputImage > >
74 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
75 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
78 itkGetOpenCLSourceFromKernelMacro(GPUMeanImageFilterKernel);
84 void PrintSelf(std::ostream & os,
Indent indent)
const override;
86 void GPUGenerateData()
override;
114 return "A Factory for GPUMeanImageFilter";
119 itkFactorylessNewMacro(
Self);
133 #define OverrideMeanFilterTypeMacro(ipt,opt,dm) \
135 using InputImageType = Image<ipt,dm>; \
136 using OutputImageType = Image<opt,dm>; \
137 this->RegisterOverride( \
138 typeid(MeanImageFilter<InputImageType,OutputImageType>).name(), \
139 typeid(GPUMeanImageFilter<InputImageType,OutputImageType>).name(), \
140 "GPU Mean Image Filter Override", \
142 CreateObjectFunction<GPUMeanImageFilter<InputImageType,OutputImageType> >::New() ); \
176 #ifndef ITK_MANUAL_INSTANTIATION
177 #include "itkGPUMeanImageFilter.hxx"
const char * GetITKSourceVersion() const override
Light weight base class for most itk classes.
A base class for all the GPU filters working on a box neighborhood.
#define ITK_SOURCE_VERSION
static void RegisterOneFactory()
GPUMeanImageFilterFactory()
GPUMeanImageFilterFactory Self
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
Create instances of classes using an object factory.
itkGPUKernelClassMacro(GPUImageOpsKernel)
TInputImage InputImageType
int m_MeanFilterGPUKernelHandle
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
#define OverrideMeanFilterTypeMacro(ipt, opt, dm)
typename InputImageType::RegionType InputImageRegionType
const char * GetDescription() const override
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
Control indentation during Print() invocation.
Object Factory implemenatation for GPUMeanImageFilter.
GPU-enabled implementation of the MeanImageFilter.
ImageBaseType::RegionType RegionType
typename InputImageType::ConstPointer InputImageConstPointer