~ubuntu-branches/ubuntu/karmic/digikam/karmic-backports

« back to all changes in this revision

Viewing changes to libs/database/haar/haariface.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu Archive Auto-Backport
  • Date: 2009-12-07 19:03:53 UTC
  • mfrom: (54.1.4 lucid)
  • Revision ID: james.westby@ubuntu.com-20091207190353-oara3lenjxymto3i
Tags: 2:1.0.0~rc-1ubuntu1~karmic1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
// KDE includes
44
44
 
45
45
#include <kurl.h>
 
46
#include <kdebug.h>
46
47
 
47
48
// Local includes
48
49
 
55
56
#include "databasebackend.h"
56
57
#include "searchxml.h"
57
58
#include "haar.h"
58
 
#include "debug.h"
59
59
/*#include "imagecomments_p.h"
60
60
#include "imageposition_p.h"
61
61
*/
94
94
        stream >> version;
95
95
        if (version != Version)
96
96
        {
97
 
            kError(digiKamAreaCode) << "Unsupported binary version of Haar Blob in database";
 
97
            kError() << "Unsupported binary version of Haar Blob in database";
98
98
            return;
99
99
        }
100
100
 
469
469
 
470
470
/*
471
471
    for (QMap<double, qlonglong>::iterator it = bestMatches.begin(); it != bestMatches.end(); ++it)
472
 
        kDebug(digiKamAreaCode) << it.key() << it.value();
 
472
        kDebug() << it.key() << it.value();
473
473
*/
474
474
    return bestMatches.values();
475
475
}
502
502
    // Debug output
503
503
    if (bestMatches.count() > 1)
504
504
    {
505
 
        kDebug(digiKamAreaCode) << "Duplicates with id and score:";
 
505
        kDebug() << "Duplicates with id and score:";
506
506
        for (QMultiMap<double, qlonglong>::const_iterator it = bestMatches.constBegin(); it != bestMatches.constEnd(); ++it)
507
507
        {
508
 
            kDebug(digiKamAreaCode) << it.value() << QString::number(it.key() * 100)+QChar('%');
 
508
            kDebug() << it.value() << QString::number(it.key() * 100)+QChar('%');
509
509
        }
510
510
    }
511
511
    // We may want to return the map itself, or a list with pairs id - percentage