41 #include <cuda_runtime.h>
60 int const imgMemSize=imgStride * img.
getHeight();
61 Transfer(imgPtr,imgMemSize);
69 int const imgMemSize=imgStride * img.
getHeight();
79 int const imgMemSize=imgStride * img.
getHeight();
80 assert(imgMemSize==size);
88 #define MASKEDIMAGE(PIXTYPE) afwImage::MaskedImage<PIXTYPE, afwImage::MaskPixel, afwImage::VariancePixel>
89 #define IMAGE(PIXTYPE) afwImage::Image<PIXTYPE>
92 #define INSTANTIATE(PIXELT) \
93 template class GpuMemOwner<PIXELT>;
Index getStrides() const
Return a Vector of the strides of all dimensions.
additional GPU exceptions
The base class for all image classed (Image, Mask, MaskedImage, ...)
contains GpuBuffer2D class (for simple handling of images or 2D arrays)
Element * getData() const
Return a raw pointer to the first element of the array.
int getHeight() const
Return the number of rows in the image.
Functions and a class to help allocating GPU global memory and transferring data to and from a GPU...