MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
mve::Volume< T > Class Template Reference

A volume with regular grid layout. More...

#include <volume.h>

Public Types

typedef std::shared_ptr< Volume< T > const > ConstPtr
 
typedef std::shared_ptr< Volume< T > > Ptr
 
typedef std::vector< T > Voxels
 

Public Member Functions

 Volume (void)
 
void allocate (int width, int height, int depth)
 Allocates new volume space, clearing previous contents.
 
int depth (void) const
 Returns depth of the image.
 
Voxelsget_data (void)
 Returns data vector for the volume.
 
Voxels const & get_data (void) const
 Returns data vector for the volume.
 
int height (void) const
 Returns height of the image.
 
int width (void) const
 Returns width of the image.
 

Static Public Member Functions

static Ptr create (int width, int height, int depth)
 

Detailed Description

template<typename T>
class mve::Volume< T >

A volume with regular grid layout.

Definition at line 29 of file volume.h.

Member Typedef Documentation

◆ ConstPtr

template<typename T >
typedef std::shared_ptr<Volume<T> const> mve::Volume< T >::ConstPtr

Definition at line 33 of file volume.h.

◆ Ptr

template<typename T >
typedef std::shared_ptr<Volume<T> > mve::Volume< T >::Ptr

Definition at line 32 of file volume.h.

◆ Voxels

template<typename T >
typedef std::vector<T> mve::Volume< T >::Voxels

Definition at line 34 of file volume.h.

Constructor & Destructor Documentation

◆ Volume()

template<typename T >
mve::Volume< T >::Volume ( void  )
inline

Definition at line 108 of file volume.h.

Member Function Documentation

◆ allocate()

template<typename T >
void mve::Volume< T >::allocate ( int  width,
int  height,
int  depth 
)
inline

Allocates new volume space, clearing previous contents.

Definition at line 124 of file volume.h.

◆ create()

template<typename T >
Volume< T >::Ptr mve::Volume< T >::create ( int  width,
int  height,
int  depth 
)
inlinestatic

Definition at line 115 of file volume.h.

◆ depth()

template<typename T >
int mve::Volume< T >::depth ( void  ) const
inline

Returns depth of the image.

Definition at line 162 of file volume.h.

◆ get_data() [1/2]

template<typename T >
Volume< T >::Voxels & mve::Volume< T >::get_data ( void  )
inline

Returns data vector for the volume.

Definition at line 134 of file volume.h.

◆ get_data() [2/2]

template<typename T >
Volume< T >::Voxels const & mve::Volume< T >::get_data ( void  ) const
inline

Returns data vector for the volume.

Definition at line 141 of file volume.h.

◆ height()

template<typename T >
int mve::Volume< T >::height ( void  ) const
inline

Returns height of the image.

Definition at line 155 of file volume.h.

◆ width()

template<typename T >
int mve::Volume< T >::width ( void  ) const
inline

Returns width of the image.

Definition at line 148 of file volume.h.


The documentation for this class was generated from the following file: