PGF wavelet transform.
More...
#include <WaveletTransform.h>
PGF wavelet transform.
PGF wavelet transform class.
- Author
- C. Stamm, R. Spuler
CWaveletTransform::CWaveletTransform |
( |
UINT32 |
width, |
|
|
UINT32 |
height, |
|
|
int |
levels, |
|
|
DataT * |
data = NULL |
|
) |
| |
Constructor: Constructs a wavelet transform pyramid of given size and levels.
- Parameters
-
width | The width of the original image (at level 0) in pixels |
height | The height of the original image (at level 0) in pixels |
levels | The number of levels (>= 0) |
data | Input data of subband LL at level 0 |
OSError CWaveletTransform::ForwardTransform |
( |
int |
level, |
|
|
int |
quant |
|
) |
| |
Compute fast forward wavelet transform of LL subband at given level and stores result on all 4 subbands of level + 1.
- Parameters
-
level | A wavelet transform pyramid level (>= 0 && < Levels()) |
quant | A quantization value (linear scalar quantization) |
- Returns
- error in case of a memory allocation problem
UINT32 CWaveletTransform::GetNofTiles |
( |
int |
level | ) |
const |
|
inline |
Get number of tiles in x- or y-direction at given level.
- Parameters
-
level | A valid subband level. |
const PGFRect& CWaveletTransform::GetROI |
( |
int |
level | ) |
const |
|
inline |
Return ROI at given level.
- Parameters
-
level | A valid subband level. |
CSubband* CWaveletTransform::GetSubband |
( |
int |
level, |
|
|
Orientation |
orientation |
|
) |
| |
|
inline |
Get pointer to one of the 4 subband at a given level.
- Parameters
-
level | A wavelet transform pyramid level (>= 0 && <= Levels()) |
orientation | A quarter of the subband (LL, LH, HL, HH) |
const PGFRect& CWaveletTransform::GetTileIndices |
( |
int |
level | ) |
const |
|
inline |
Get tile indices of a ROI at given level.
- Parameters
-
level | A valid subband level. |
OSError CWaveletTransform::InverseTransform |
( |
int |
level, |
|
|
UINT32 * |
width, |
|
|
UINT32 * |
height, |
|
|
DataT ** |
data |
|
) |
| |
Compute fast inverse wavelet transform of all 4 subbands of given level and stores result in LL subband of level - 1.
- Parameters
-
level | A wavelet transform pyramid level (> 0 && <= Levels()) |
width | A pointer to the returned width of subband LL (in pixels) |
height | A pointer to the returned height of subband LL (in pixels) |
data | A pointer to the returned array of image data |
- Returns
- error in case of a memory allocation problem
void CWaveletTransform::SetROI |
( |
const PGFRect & |
rect | ) |
|
Compute and store ROIs for each level
- Parameters
-
rect | rectangular region of interest (ROI) |
The documentation for this class was generated from the following files: