ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
D_DataVolume_3D Class Reference

The D_DataVolume_3D class abstract 3D data volume. WIP, NOT TESTED! More...

#include <d_datavolume_3d.h>

Public Member Functions

 D_DataVolume_3D ()
 
bool init_VolumeSize (size_t sz, size_t sy, size_t sx)
 
bool add_Value (size_t z, size_t y, size_t x, double value)
 
bool add_Values (size_t z, size_t y, size_t x, vector< double > v_values)
 
double get_Value (size_t z, size_t y, size_t x, size_t i)
 
vector< double > get_Values (size_t z, size_t y, size_t x)
 
int calc_stats (D_VisDat_Obj *pVD_Out, size_t stat, bool linear, Point3i mask_size, double default_value, int min_elements_thres)
 D_DataVolume_3D::calc_stats reduces the data volume to a D_VisDat_Obj where the px values describe the stat in the mask area. More...
 

Detailed Description

The D_DataVolume_3D class abstract 3D data volume. WIP, NOT TESTED!

Might be finished later if needed. Was a bit over the top approach to a simpler problem...

Constructor & Destructor Documentation

◆ D_DataVolume_3D()

D_DataVolume_3D::D_DataVolume_3D ( )

Member Function Documentation

◆ add_Value()

bool D_DataVolume_3D::add_Value ( size_t  z,
size_t  y,
size_t  x,
double  value 
)

◆ add_Values()

bool D_DataVolume_3D::add_Values ( size_t  z,
size_t  y,
size_t  x,
vector< double >  v_values 
)

◆ calc_stats()

int D_DataVolume_3D::calc_stats ( D_VisDat_Obj pVD_Out,
size_t  stat,
bool  linear,
Point3i  mask_size,
double  default_value,
int  min_elements_thres 
)

D_DataVolume_3D::calc_stats reduces the data volume to a D_VisDat_Obj where the px values describe the stat in the mask area.

Parameters
pVD_Outlocally calculated stats
statstat to use for calc
lineartrue: linear statistics, false: circular statistics
mask_sizemask size to calc stats for (negative indices induce a full range calculation. In this case the resulting VD's size in this dim is 1)
default_valuevalue to use when there are not enough values in range to perform a calculation
min_elements_thresmin numbero of values in range to perform a calculation
Returns
error code

◆ get_Value()

double D_DataVolume_3D::get_Value ( size_t  z,
size_t  y,
size_t  x,
size_t  i 
)

◆ get_Values()

vector< double > D_DataVolume_3D::get_Values ( size_t  z,
size_t  y,
size_t  x 
)

◆ init_VolumeSize()

bool D_DataVolume_3D::init_VolumeSize ( size_t  sz,
size_t  sy,
size_t  sx 
)

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