29 #ifndef PGF_WAVELETTRANSFORM_H
30 #define PGF_WAVELETTRANSFORM_H
38 #define FilterHeight 3
40 #ifdef __PGFROISUPPORT__
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); }
77 #endif //__PGFROISUPPORT__
127 #ifdef __PGFROISUPPORT__
128 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); }
148 #endif // __PGFROISUPPORT__
153 #ifdef __PGFROISUPPORT__
154 m_ROIindices.Destroy();
163 #ifdef __PGFROISUPPORT__
164 CRoiIndices m_ROIindices;
165 #endif //__PGFROISUPPORT__
171 #endif //PGF_WAVELETTRANSFORM_H