The D_DataVolume_3D class abstract 3D data volume. WIP, NOT TESTED!
More...
#include <d_datavolume_3d.h>
|
| 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...
|
|
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...
◆ D_DataVolume_3D()
D_DataVolume_3D::D_DataVolume_3D |
( |
| ) |
|
◆ 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_Out | locally calculated stats |
stat | stat to use for calc |
linear | true: linear statistics, false: circular statistics |
mask_size | mask 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_value | value to use when there are not enough values in range to perform a calculation |
min_elements_thres | min 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: