19 #ifndef __itkGPUImage_h
20 #define __itkGPUImage_h
39 template <
typename TPixel,
unsigned int VImageDimension = 2>
79 virtual void Allocate(
bool initialize=
false) ITK_OVERRIDE;
91 const TPixel & operator[](const
IndexType & index) const;
93 TPixel & operator[](const
IndexType & index);
103 const TPixel * GetBufferPointer() const;
214 return "A Factory for GPUImage";
219 itkFactorylessNewMacro(
Self);
236 #define OverrideImageTypeMacro(pt,dm) this->RegisterOverride( \
237 typeid(itk::Image<pt,dm>).name(), \
238 typeid(itk::GPUImage<pt,dm>).name(), \
239 "GPU Image Override", \
241 itk::CreateObjectFunction<GPUImage<pt,dm> >::New() )
273 template <
typename T>
280 template <
typename TPixelType,
unsigned int NDimension>
289 #ifndef ITK_MANUAL_INSTANTIATION
290 #include "itkGPUImage.hxx"
AccessorType GetPixelAccessor(void)
void SetPixelContainer(PixelContainer *container)
Superclass::RegionType RegionType
PixelContainer::ConstPointer PixelContainerConstPointer
Superclass::OffsetType OffsetType
virtual void Graft(const DataObject *data)
void FillBuffer(const TPixel &value)
#define ITK_SOURCE_VERSION
void operator=(const Self &)
TPixel * GetBufferPointer()
SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
Superclass::IOPixelType IOPixelType
virtual const char * GetITKSourceVersion() const
Create instances of classes using an object factory.
Implements a weak reference to an object.
Superclass::SpacingType SpacingType
GPUDataManager::Pointer GetGPUDataManager() const
DefaultPixelAccessorFunctor< Self > AccessorFunctorType
void SetCurrentCommandQueue(int queueid)
NeighborhoodAccessorFunctor< Self > NeighborhoodAccessorFunctorType
Superclass::InternalPixelType InternalPixelType
Superclass::PixelType PixelType
PixelContainer * GetPixelContainer()
Superclass::DirectionType DirectionType
Templated n-dimensional image class for the GPU.
virtual void DataHasBeenGenerated()
Superclass::AccessorType AccessorType
WeakPointer< const Self > ConstWeakPointer
Provides accessor interfaces to Get pixels and is meant to be used on pointers contained within Neigh...
Superclass::PixelContainer PixelContainer
const PixelContainer * GetPixelContainer() const
Superclass::IndexType IndexType
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
Superclass::SizeType SizeType
Image< TPixel, VImageDimension > Superclass
GPUImageDataManager< GPUImage >::Pointer m_DataManager
Superclass::DirectionType DirectionType
Provides a common API for pixel accessors for Image and VectorImage.
ImportImageContainer< SizeValueType, PixelType > PixelContainer
itk::ObjectFactoryBase Superclass
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
Superclass::SpacingType SpacingType
const TPixel & GetPixel(const IndexType &index) const
#define OverrideImageTypeMacro(pt, dm)
virtual void Modified() const
SmartPointer< const Self > ConstPointer
Superclass::OffsetType OffsetType
Superclass::ValueType ValueType
void operator=(const Self &)
Superclass::RegionType RegionType
void DataHasBeenGenerated()
GPUImage< TPixelType, NDimension > Type
AccessorType GetPixelAccessor(void)
int GetCurrentCommandQueueID()
static bool RegisterFactory(ObjectFactoryBase *, InsertionPositionType where=INSERT_AT_BACK, vcl_size_t position=0)
const char * GetDescription() const
DefaultPixelAccessor< PixelType > AccessorType
virtual void Initialize()
itk::SmartPointer< Self > Pointer
PixelContainer * GetPixelContainer()
static void RegisterOneFactory(void)
static const unsigned int ImageDimension
Give access to partial aspects a type.
Superclass::SizeType SizeType
Superclass::IndexType IndexType
void SetPixel(const IndexType &index, const TPixel &value)
Base class for all data objects in ITK.
Templated n-dimensional image class.
virtual void Allocate(bool initialize=false) ITK_OVERRIDE
const AccessorType GetPixelAccessor(void) const
Defines an itk::Image front-end to a standard C-array.
PixelContainer::Pointer PixelContainerPointer