UT_Cdf Class Reference

#include <UT_Cdf.h>

List of all members.

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.


Detailed Description

Definition at line 28 of file UT_Cdf.h.


Constructor & Destructor Documentation

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]


Member Function Documentation

fpreal UT_Cdf::getScaling (  )  [inline]

Get the average image value.

Definition at line 48 of file UT_Cdf.h.

void UT_Cdf::sample ( const fpreal sval,
fpreal dval 
)

Draw an importance sample from the cdf. sval and dval must have myDim entries.


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

Generated on Fri May 25 00:10:46 2012 for HDK by  doxygen 1.5.9