HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Wavelet Class Reference

#include <UT_Wavelet.h>

Public Types

enum  WAVELET_NAMES { WAVELET_HAAR, NUM_WAVELETS }
 

Static Public Member Functions

static void transformOrdered (WAVELET_NAMES wavelettype, const UT_FloatArray &source, UT_FloatArray &dest, int maxlevels=-1)
 
static void inverseTransformOrdered (WAVELET_NAMES wavelettype, const UT_FloatArray &source, UT_FloatArray &dest, int maxlevels=-1)
 
static void transformOrdered (WAVELET_NAMES wavelettype, const UT_VoxelArrayF &source, UT_VoxelArrayF &dest, int maxlevels=-1)
 
static void inverseTransformOrdered (WAVELET_NAMES wavelettype, const UT_VoxelArrayF &source, UT_VoxelArrayF &dest, int maxlevels=-1)
 
static void extractComponent (const UT_VoxelArrayF &wavelets, UT_VoxelArrayF &dest, int level, int component)
 
static void computePowerSpectrum (const UT_VoxelArrayF &wavelets, UT_VoxelArrayF &dest, int level)
 
static void transformOrderedOnePass (WAVELET_NAMES wavelettype, const UT_FloatArray &source, UT_FloatArray &wavelets)
 
static void inverseTransformOrderedOnePass (WAVELET_NAMES wavelettype, const UT_FloatArray &wavelets, UT_FloatArray &data)
 
static void transformOrderedOnePassHaar (const UT_FloatArray &source, UT_FloatArray &wavelets)
 Specific wavelet implementations. More...
 
static void inverseTransformOrderedOnePassHaar (const UT_FloatArray &wavelets, UT_FloatArray &data)
 

Detailed Description

Definition at line 21 of file UT_Wavelet.h.

Member Enumeration Documentation

Enumerator
WAVELET_HAAR 
NUM_WAVELETS 

Definition at line 24 of file UT_Wavelet.h.

Member Function Documentation

static void UT_Wavelet::computePowerSpectrum ( const UT_VoxelArrayF wavelets,
UT_VoxelArrayF dest,
int  level 
)
static

Computes the power of the given level of a packed voxel array. level 0 is the first set of detail coefficients. This corresponds to computing the power for a single frequency - this is the sum of squares of the detail coefficients.

static void UT_Wavelet::extractComponent ( const UT_VoxelArrayF wavelets,
UT_VoxelArrayF dest,
int  level,
int  component 
)
static

Extracts one of the subfields from a packed wavelet. All subfields have the rounded-up size so are the same dimension - missing wavelet coefficients are set to 0. The zeroth component is the low pass filter and only is valid if the packed pyramid was stopped at that level. level 0 is the first set of detail coefficients.

static void UT_Wavelet::inverseTransformOrdered ( WAVELET_NAMES  wavelettype,
const UT_FloatArray source,
UT_FloatArray dest,
int  maxlevels = -1 
)
static
static void UT_Wavelet::inverseTransformOrdered ( WAVELET_NAMES  wavelettype,
const UT_VoxelArrayF source,
UT_VoxelArrayF dest,
int  maxlevels = -1 
)
static
static void UT_Wavelet::inverseTransformOrderedOnePass ( WAVELET_NAMES  wavelettype,
const UT_FloatArray wavelets,
UT_FloatArray data 
)
static
static void UT_Wavelet::inverseTransformOrderedOnePassHaar ( const UT_FloatArray wavelets,
UT_FloatArray data 
)
static
static void UT_Wavelet::transformOrdered ( WAVELET_NAMES  wavelettype,
const UT_FloatArray source,
UT_FloatArray dest,
int  maxlevels = -1 
)
static

These functions build a packed pyramid of coefficients or, for inverse, unpack it. The VoxelArray variants work on 3d arrays but can also be used for 2d arrrays by setting one of the dimensions to 1.

static void UT_Wavelet::transformOrdered ( WAVELET_NAMES  wavelettype,
const UT_VoxelArrayF source,
UT_VoxelArrayF dest,
int  maxlevels = -1 
)
static
static void UT_Wavelet::transformOrderedOnePass ( WAVELET_NAMES  wavelettype,
const UT_FloatArray source,
UT_FloatArray wavelets 
)
static

Performs a single pass of the given wavelet transform Does an ordered transform, so is not in place.

static void UT_Wavelet::transformOrderedOnePassHaar ( const UT_FloatArray source,
UT_FloatArray wavelets 
)
static

Specific wavelet implementations.


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