digiKam
Digikam::Haar::WeightBin Class Reference

Public Member Functions

unsigned char bin (int index) const
 
unsigned char binAbs (int index) const
 
 WeightBin ()
 

Public Attributes

unsigned char m_bin [16384] = { 0 }
 

Constructor & Destructor Documentation

◆ WeightBin()

Digikam::Haar::WeightBin::WeightBin ( )
explicit

Setup initial fixed Haar weights that each coefficient represents

References Digikam::Haar::NumberOfPixelsSquared.

Member Function Documentation

◆ bin()

unsigned char Digikam::Haar::WeightBin::bin ( int  index) const
inline

References m_bin.

◆ binAbs()

unsigned char Digikam::Haar::WeightBin::binAbs ( int  index) const
inline

Member Data Documentation

◆ m_bin

unsigned char Digikam::Haar::WeightBin::m_bin[16384] = { 0 }

Fixed weight mask for pixel positions (i,j). Each entry x = i*NUM_PIXELS + j, gets value max(i,j) saturated at 5. To be treated as a constant.

Referenced by bin(), and binAbs().


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