|
Image Utilities (IU)
|
Base class for 3D volumes (pitched memory). More...
#include <volume.h>
Public Member Functions | |
| 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 |
| virtual size_t | bytes () const |
| virtual size_t | pitch () const |
| virtual size_t | stride () const |
| virtual size_t | slice_stride () const |
| virtual unsigned int | bitDepth () const |
| virtual bool | onDevice () const |
Friends | |
| std::ostream & | operator<< (std::ostream &out, Volume const &volume) |
Base class for 3D volumes (pitched memory).
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
|
inlinevirtual |
Returns the bit depth of the data pointer.
Reimplemented in iu::VolumeGpu< PixelType, Allocator >, and iu::VolumeCpu< PixelType, Allocator >.
|
inlinevirtual |
Returns the total amount of bytes saved in the data buffer.
Reimplemented in iu::VolumeGpu< PixelType, Allocator >, and iu::VolumeCpu< PixelType, Allocator >.
|
inline |
|
inline |
|
inline |
Returns the number of pixels in the Volume.
|
inlinevirtual |
Returns flag if the Volume data resides on the device/GPU (TRUE) or host/GPU (FALSE)
Reimplemented in iu::VolumeGpu< PixelType, Allocator >, and iu::VolumeCpu< PixelType, Allocator >.
|
inlinevirtual |
Returns the distance in bytes between starts of consecutive rows.
Reimplemented in iu::VolumeGpu< PixelType, Allocator >, and iu::VolumeCpu< PixelType, Allocator >.
|
inline |
|
inlinevirtual |
Returns the distance in pixels between starts of consecutive slices.
Reimplemented in iu::VolumeGpu< PixelType, Allocator >, and iu::VolumeCpu< PixelType, Allocator >.
|
inlinevirtual |
Returns the distance in pixels between starts of consecutive rows.
Reimplemented in iu::VolumeGpu< PixelType, Allocator >, and iu::VolumeCpu< PixelType, Allocator >.
|
inline |
|
friend |
Operator<< overloading. Output of Volume class.
1.8.6