Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Core::DataSlice Class Reference
Inheritance diagram for Core::DataSlice:

Public Types

typedef long long generation_type
 Generation number compatible with DataBlock class.
 
typedef int index_type
 Index used for addressing memory inside the datablock underlying the slice.
 

Public Member Functions

 DataSlice (DataBlockHandle datablock, SliceType slice_type, index_type index)
 
size_t get_nx () const
 Get the number of samples in the x direction.
 
size_t get_ny () const
 Get the number of samples in the y direction.
 
size_t get_nz () const
 Get the number of samples in the z direction.
 
size_t get_size () const
 Get the total number of samples.
 
size_t get_elem_size () const
 Get the size of the data elements.
 
size_t get_byte_size () const
 Get the size in bytes.
 
DataType get_data_type () const
 The type of the data.
 
SliceType get_slice_type () const
 Whether the slice is axial, coronal, or sagittal.
 
generation_type get_generation () const
 Get the current generation number of the data volume.
 
DataBlockHandle get_data_block () const
 Get the underlying data block that contains the data of the slice.
 
void * get_data () const
 Get the pointer of the data in the dat block underlying this class.
 
index_type get_index () const
 Get the index of the slice.
 
void set_index (index_type)
 Set the index of the slice.
 

Static Public Member Functions

static bool Duplicate (const DataSliceHandle &src_data_slice, DataSliceHandle &dst_data_slice)
 Clone the data in a datablock by generating a new one and copying the data into it.
 

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