|
Image Utilities (IU)
|
Host 3D volume class (pitched memory). More...
#include <volume_cpu.h>
Public Types | |
| typedef PixelType | pixel_type |
Public Member Functions | |
| VolumeCpu () | |
| virtual | ~VolumeCpu () |
| VolumeCpu (unsigned int _width, unsigned int _height, unsigned int _depth) | |
| VolumeCpu (const iu::Size< 3 > &size) | |
| VolumeCpu (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 |
| ImageCpu< PixelType, iuprivate::ImageAllocatorCpu < PixelType > > | getSlice (int oz) |
| PixelType | getPixel (unsigned int x, unsigned int y, unsigned int z) |
| thrust::pointer< PixelType, thrust::host_system_tag > | begin (void) |
| thrust::pointer< PixelType, thrust::host_system_tag > | end (void) |
| ndarray_ref< PixelType, 3 > | ref () const |
| VolumeCpu (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 |
Host 3D volume class (pitched memory).
| typedef PixelType iu::VolumeCpu< PixelType, Allocator >::pixel_type |
Define the current pixel type.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inline |
| iu::VolumeCpu< PixelType, Allocator >::VolumeCpu | ( | 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 |
Get Pixel value at position x,y,z.
|
inline |
Returns a volume slice given by a z-offset as ImageCpu
| [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::VolumeCpu< 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 distnace 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.
1.8.6