Image Utilities (IU)
|
Device 3D volume class (pitched memory). More...
#include <volume_gpu.h>
Data Structures | |
struct | KernelData |
Struct pointer KernelData that can be used in CUDA kernels. More... | |
Public Types | |
typedef PixelType | pixel_type |
Public Member Functions | |
VolumeGpu () | |
virtual | ~VolumeGpu () |
VolumeGpu (unsigned int _width, unsigned int _height, unsigned int _depth) | |
VolumeGpu (const iu::Size< 3 > &size) | |
VolumeGpu (PixelType *_data, unsigned int _width, unsigned int _height, unsigned int _depth, size_t _pitch, bool ext_data_pointer=false) | |
size_t | bytes () const |
size_t | pitch () const |
size_t | slice_pitch () const |
size_t | stride () const |
size_t | slice_stride () const |
virtual unsigned int | bitDepth () const |
virtual bool | onDevice () const |
PixelType * | data (int ox=0, int oy=0, int oz=0) |
const PixelType * | data (int ox=0, int oy=0, int oz=0) const |
ImageGpu< PixelType, iuprivate::ImageAllocatorGpu < PixelType > > | getSlice (int oz) |
thrust::device_ptr< PixelType > | begin (void) |
thrust::device_ptr< PixelType > | end (void) |
ndarray_ref< PixelType, 3 > | ref () const |
VolumeGpu (const ndarray_ref< PixelType, 3 > &x) | |
Public Member Functions inherited from iu::Volume | |
Volume () | |
virtual | ~Volume () |
Volume (unsigned int width, unsigned int height, unsigned int depth) | |
Volume (const iu::Size< 3 > &size) | |
bool | sameType (const Volume &from) |
iu::Size< 3 > | size () const |
unsigned int | width () const |
unsigned int | height () const |
unsigned int | depth () const |
size_t | numel () const |
Device 3D volume class (pitched memory).
typedef PixelType iu::VolumeGpu< PixelType, Allocator >::pixel_type |
Define the current pixel type.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inline |
iu::VolumeGpu< PixelType, Allocator >::VolumeGpu | ( | const ndarray_ref< PixelType, 3 > & | x | ) |
construct from ndarray_ref – include ndarray/ndarray_iu.h
|
inline |
Returns a thrust pointer that can be used in custom operators
|
inlinevirtual |
Returns the bit depth of the data pointer.
Reimplemented from iu::Volume.
|
inlinevirtual |
Returns the total amount of bytes saved in the data buffer.
Reimplemented from iu::Volume.
|
inline |
Returns a pointer to the pixel data. The pointer can be offset to position (ox/oy).
ox | Horizontal offset of the pointer array. |
oy | Vertical offset of the pointer array. |
|
inline |
Returns a const pointer to the pixel data. The pointer can be offset to position (ox/oy).
ox | Horizontal offset of the pointer array. |
oy | Vertical offset of the pointer array. |
|
inline |
Returns a thrust pointer that can be used in custom operators
|
inline |
Returns a volume slice given by a z-offset as ImageGpu
[in] | oz | z-offset into the volume |
|
inlinevirtual |
Returns flag if the volume data resides on the device/GPU (TRUE) or host/GPU (FALSE)
Reimplemented from iu::Volume.
|
inlinevirtual |
Returns the distance in bytes between starts of consecutive rows.
Reimplemented from iu::Volume.
ndarray_ref<PixelType,3> iu::VolumeGpu< PixelType, Allocator >::ref | ( | ) | const |
convert to ndarray_ref – include ndarray/ndarray_iu.h
|
inline |
Returns the distance in bytes between starts of consecutive slices.
|
inlinevirtual |
Returns the distance in pixels between starts of consecutive slices.
Reimplemented from iu::Volume.
|
inlinevirtual |
Returns the distance in pixels between starts of consecutive rows.
Reimplemented from iu::Volume.