29#ifndef PGF_WAVELETTRANSFORM_H
30#define PGF_WAVELETTRANSFORM_H
40#ifdef __PGFROISUPPORT__
57 ~CRoiIndices() { Destroy(); }
59 void Destroy() {
delete[] m_indices; m_indices = 0; }
61 void ComputeIndices(UINT32 width, UINT32 height,
const PGFRect& rect);
62 const PGFRect& GetIndices(
int level)
const { ASSERT(m_indices); ASSERT(level >= 0 && level < m_nLevels);
return m_indices[level]; }
63 void SetLevels(
int levels) { ASSERT(levels > 0); m_nLevels = levels; }
64 void ComputeTileIndex(UINT32 width, UINT32 height, UINT32 pos,
bool horizontal,
bool isMin);
70 UINT32 GetNofTiles(
int level)
const { ASSERT(level >= 0 && level < m_nLevels);
return 1 << (m_nLevels - level - 1); }
127#ifdef __PGFROISUPPORT__
131 void SetROI(
const PGFRect& rect);
136 const PGFRect& GetTileIndices(
int level)
const {
return m_ROIindices.GetIndices(level); }
141 UINT32 GetNofTiles(
int level)
const {
return m_ROIindices.GetNofTiles(level); }
153 #ifdef __PGFROISUPPORT__
154 m_ROIindices.Destroy();
163#ifdef __PGFROISUPPORT__
164 CRoiIndices m_ROIindices;
#define NSubbands
number of subbands per level
PGF wavelet subband class.