30 #ifndef DIGIKAM_HAAR_H
31 #define DIGIKAM_HAAR_H
57 static const float s_haar_weights[2][6][3] =
62 { { 5.00F, 19.21F, 34.37F },
63 { 0.83F, 1.26F, 0.36F },
64 { 1.01F, 0.44F, 0.45F },
65 { 0.52F, 0.53F, 0.14F },
66 { 0.47F, 0.28F, 0.18F },
67 { 0.30F, 0.14F, 0.27F }
73 { { 4.04F, 15.14F, 22.62F },
74 { 0.78F, 0.92F, 0.40F },
75 { 0.46F, 0.53F, 0.63F },
76 { 0.42F, 0.26F, 0.25F },
77 { 0.41F, 0.14F, 0.15F },
78 { 0.32F, 0.07F, 0.38F }
207 unsigned char bin(
int index)
const
214 return ((index > 0) ?
m_bin[index] :
m_bin[-index]);
248 return (s_haar_weights[(
int)m_type][
weight][channel]);
253 return (s_haar_weights[(
int)m_type][0][channel]);
277 void haar2D(
Unit a[]);
278 inline void getmLargests(
Unit*
const cdata,
Idx*
const sig);
Calculator()
Definition: haar.cpp:173
~Calculator()
Definition: haar.cpp:177
void transform(ImageData *const data)
Definition: haar.cpp:278
int calcHaar(ImageData *const imageData, SignatureData *const sigData)
Definition: haar.cpp:381
void fillPixelData(const QImage &image)
Definition: haar.cpp:85
Unit data3[NumberOfPixelsSquared]
Definition: haar.h:110
Unit data1[NumberOfPixelsSquared]
Definition: haar.h:108
Unit data2[NumberOfPixelsSquared]
Definition: haar.h:109
double avg[3]
Definition: haar.h:130
Haar::Idx sig[3][Haar::NumberOfCoefficients]
Definition: haar.h:125
~SignatureMap()
Definition: haar.h:148
void fill(Haar::Idx *const coefs)
Load a set of coefficients.
Definition: haar.h:155
SignatureMap()
Definition: haar.h:143
bool MapIndexType
Definition: haar.h:191
MapIndexType * m_indexList
Definition: haar.h:192
bool operator[](Haar::Idx index) const
Query if the given index is set. Index must be in the range -16383..16383.
Definition: haar.h:174
unsigned char binAbs(int index) const
Definition: haar.h:212
unsigned char m_bin[16384]
Definition: haar.h:224
WeightBin()
Definition: haar.cpp:138
unsigned char bin(int index) const
Definition: haar.h:207
Weights(SketchType type=ScannedSketch)
Definition: haar.h:241
float weight(int weight, int channel) const
Definition: haar.h:246
SketchType
Definition: haar.h:234
@ ScannedSketch
Definition: haar.h:235
@ PaintedSketch
Definition: haar.h:236
float weightForAverage(int channel) const
Definition: haar.h:251
@ NumberOfPixelsSquared
Definition: haar.h:90
qint32 Idx
Keep this definition constant at qint32 (guaranteed binary size!)
Definition: haar.h:100
double Unit
Definition: haar.h:97
@ NumberOfPixels
Definition: haar.h:85
@ NumberOfCoefficients
Definition: haar.h:95
Definition: datefolderview.cpp:43