A class for wavelet coefficient data.
More...
#include <wavelet_utils.h>
List of all members.
Public Member Functions |
| CoeffArray () |
| Default constructor.
|
| CoeffArray (int height, int width, CompSort cs=Y_COMP) |
| Constructor.
|
| ~CoeffArray () |
| Destructor.
|
const CompSort & | CSort () const |
| Return which component is stored.
|
void | SetCSort (const CompSort cs) |
| Set the type of component being stored.
|
SubbandList & | BandList () |
| Returns the set of subbands.
|
const SubbandList & | BandList () const |
| Returns the set of subbands.
|
void | SetBandWeights (const EncoderParams &encparams, const PictureParams &pparams, const CompSort csort, const float cpd_scale_factor) |
| Sets the subband weights.
|
| TwoDArray () |
| Default constructor.
|
| TwoDArray (const int height, const int width) |
| Constructor.
|
| TwoDArray (const int height, const int width, CoeffTypeval) |
| Constructor.
|
| TwoDArray (const TwoDArray< CoeffType > &Cpy) |
| Copy constructor.
|
virtual | ~TwoDArray () |
| Destructor.
|
TwoDArray< CoeffType > & | operator= (const TwoDArray< CoeffType > &rhs) |
| Assignment =.
|
bool | CopyContents (TwoDArray< CoeffType > &out) const |
| Copy Contents.
|
void | Fill (CoeffTypeval) |
| Fill contents.
|
void | Resize (const int height, const int width) |
| Resizes the array, deleting the current data.
|
element_type & | operator[] (const int pos) |
| Element access.
|
const element_type & | operator[] (const int pos) const |
| Element access.
|
int | LengthX () const |
| Returns the width.
|
int | LengthY () const |
| Returns the height.
|
int | FirstX () const |
| Returns the index of the first element of a row.
|
int | FirstY () const |
| Returns the index of the first element of a column.
|
int | LastX () const |
| Returns the index of the last element of a row.
|
int | LastY () const |
| Returns the index of the first element of a column.
|
Private Member Functions |
float | PerceptualWeight (float xf, float yf, CompSort cs) |
| Given x and y spatial frequencies in cycles per degree, returns a weighting value.
|
Detailed Description
A class for encapsulating coefficient data, derived from TwoDArray..
Constructor & Destructor Documentation
dirac::CoeffArray::CoeffArray |
( |
| ) |
|
|
inline |
Default constructor creates an empty array.
dirac::CoeffArray::CoeffArray |
( |
int |
height, |
|
|
int |
width, |
|
|
CompSort |
cs = Y_COMP |
|
) |
| |
|
inline |
Contructor creates a two-D array, with specified size and colour format.
dirac::CoeffArray::~CoeffArray |
( |
| ) |
|
|
inline |
Member Function Documentation
const SubbandList& dirac::CoeffArray::BandList |
( |
| ) |
const |
|
inline |
const CompSort& dirac::CoeffArray::CSort |
( |
| ) |
const |
|
inline |
float dirac::CoeffArray::PerceptualWeight |
( |
float |
xf, |
|
|
float |
yf, |
|
|
CompSort |
cs |
|
) |
| |
|
private |
Sets perceptual weights for the subbands. Takes into account both perceptual factors (weight noise less at higher spatial frequencies) and the scaling needed for the wavelet transform.
void dirac::CoeffArray::SetCSort |
( |
const CompSort |
cs | ) |
|
|
inline |
Member Data Documentation
The documentation for this class was generated from the following file: