Loading...
Searching...
No Matches
itkGPUImageDataManager.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkGPUImageDataManager_h
#define itkGPUImageDataManager_h
#include <itkObject.h>
#include <itkTimeStamp.h>
#include <itkLightObject.h>
#include <itkObjectFactory.h>
#include "itkGPUImage.h"
#include "itkGPUDataManager.h"
namespace itk
{
template <typename TPixel, unsigned int NDimension>
class ITK_TEMPLATE_EXPORT GPUImage;
template <typename ImageType>
class ITK_TEMPLATE_EXPORT ITKOpenCL_EXPORT GPUImageDataManager : public GPUDataManager
{
// allow GPUKernelManager to access GPU buffer pointer
friend class OpenCLKernelManager;
friend class GPUImage<typename ImageType::PixelType, ImageType::ImageDimension>;
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUImageDataManager);
using Self = GPUImageDataManager;
using Superclass = GPUDataManager;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(GPUImageDataManager, GPUDataManager);
void
SetImagePointer(typename ImageType::Pointer img);
void
UpdateCPUBuffer() override;
void
UpdateGPUBuffer() override;
virtual void
Graft(const GPUImageDataManager * data);
protected:
GPUImageDataManager() { m_Image = nullptr; }
~GPUImageDataManager() override = default;
private:
typename ImageType::Pointer m_Image{};
};
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUImageDataManager.hxx"
#endif
#endif
itk::GPUDataManager::GPUDataManager
GPUDataManager()
itk::GPUImageDataManager::Pointer
SmartPointer< Self > Pointer
Definition itkGPUImageDataManager.h:77
itk::GPUImageDataManager::~GPUImageDataManager
~GPUImageDataManager() override=default
itk::GPUImageDataManager::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUImageDataManager.h:78
itk::GPUImageDataManager::OpenCLKernelManager
friend class OpenCLKernelManager
Definition itkGPUImageDataManager.h:69
itk::GPUImageDataManager::Superclass
GPUDataManager Superclass
Definition itkGPUImageDataManager.h:76
itk::GPUImageDataManager::m_Image
ImageType::Pointer m_Image
Definition itkGPUImageDataManager.h:103
itk::GPUImageDataManager::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUImageDataManager)
itk::GPUImageDataManager::UpdateGPUBuffer
void UpdateGPUBuffer() override
itk::GPUImageDataManager::SetImagePointer
void SetImagePointer(typename ImageType::Pointer img)
itk::GPUImageDataManager::Self
GPUImageDataManager Self
Definition itkGPUImageDataManager.h:75
itk::GPUImageDataManager::Graft
virtual void Graft(const GPUImageDataManager *data)
itk::GPUImageDataManager::GPUImageDataManager
GPUImageDataManager()
Definition itkGPUImageDataManager.h:99
itk::GPUImageDataManager::UpdateCPUBuffer
void UpdateCPUBuffer() override
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition itkGPUImage.h:64
itkGPUDataManager.h
itkGPUImage.h
ITKOpenCL_EXPORT
#define ITKOpenCL_EXPORT
Definition itkOpenCLExport.h:33
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |