#include <UT_Cdf.h>
Public Member Functions | |
| UT_Cdf (const UT_VoxelArrayF &voxels) | |
| UT_Cdf (const fpreal *data, const int *res, int dim) | |
| virtual | ~UT_Cdf () |
| void | sample (const fpreal *sval, fpreal *dval) |
| fpreal | getScaling () |
| Get the average image value. | |
Definition at line 28 of file UT_Cdf.h.
| UT_Cdf::UT_Cdf | ( | const UT_VoxelArrayF & | voxels | ) |
Construct from a voxel array (dimensions = 3) Voxel values less than 0 will be treated as zero.
| UT_Cdf::UT_Cdf | ( | const fpreal * | data, | |
| const int * | res, | |||
| int | dim | |||
| ) |
Construct from a float array data = row-major data res = resolution for each dimension dim = number of dimensions data values less than zero will be treated as zero.
| virtual UT_Cdf::~UT_Cdf | ( | ) | [virtual] |
| fpreal UT_Cdf::getScaling | ( | ) | [inline] |
Draw an importance sample from the cdf. sval and dval must have myDim entries.
1.5.9