47static const float s_haar_weights[2][6][3] =
53 { 5.00F, 19.21F, 34.37F },
54 { 0.83F, 1.26F, 0.36F },
55 { 1.01F, 0.44F, 0.45F },
56 { 0.52F, 0.53F, 0.14F },
57 { 0.47F, 0.28F, 0.18F },
58 { 0.30F, 0.14F, 0.27F }
65 { 4.04F, 15.14F, 22.62F },
66 { 0.78F, 0.92F, 0.40F },
67 { 0.46F, 0.53F, 0.63F },
68 { 0.42F, 0.26F, 0.25F },
69 { 0.41F, 0.14F, 0.15F },
70 { 0.32F, 0.07F, 0.38F }
201 unsigned char bin(
int index)
const
203 if ((index >= 0) && (index < 16384))
213 if ((index > 0) && (index < 16384))
217 else if ((index > -16384) && (index <= 0))
219 return m_bin[-index];
256 return (s_haar_weights[(
int)m_type][
weight][channel]);
261 return (s_haar_weights[(
int)m_type][0][channel]);
285 void haar2D(
Unit a[]);
286 inline void getmLargests(
Unit*
const cdata,
Idx*
const sig);
void transform(ImageData *const data)
Definition haar.cpp:259
int calcHaar(ImageData *const imageData, SignatureData *const sigData)
Definition haar.cpp:362
void fillPixelData(const QImage &image)
Definition haar.cpp:74
Unit data3[NumberOfPixelsSquared]
Definition haar.h:104
Unit data1[NumberOfPixelsSquared]
Definition haar.h:102
Unit data2[NumberOfPixelsSquared]
Definition haar.h:103
double avg[3]
Definition haar.h:124
Haar::Idx sig[3][Haar::NumberOfCoefficients]
Definition haar.h:119
~SignatureMap()
Definition haar.h:142
SignatureMap()
Definition haar.h:137
bool MapIndexType
Definition haar.h:185
MapIndexType * m_indexList
Definition haar.h:186
bool operator[](Haar::Idx index) const
Query if the given index is set. Index must be in the range -16383..16383.
Definition haar.h:168
void fill(const Haar::Idx *const coefs)
Load a set of coefficients.
Definition haar.h:149
unsigned char binAbs(int index) const
Definition haar.h:211
unsigned char m_bin[16384]
Definition haar.h:232
WeightBin()
Definition haar.cpp:127
unsigned char bin(int index) const
Definition haar.h:201
Weights(SketchType type=ScannedSketch)
Definition haar.h:249
float weight(int weight, int channel) const
Definition haar.h:254
SketchType
Definition haar.h:242
@ ScannedSketch
Definition haar.h:243
@ PaintedSketch
Definition haar.h:244
float weightForAverage(int channel) const
Definition haar.h:259
@ NumberOfPixels
Definition haar.h:77
@ NumberOfPixelsSquared
Definition haar.h:82
qint32 Idx
Definition haar.h:94
double Unit
Definition haar.h:89
@ NumberOfCoefficients
Definition haar.h:87
Definition datefolderview.cpp:34