comparison data/model/ImageModel.h @ 318:7a4bd2c8585c

* Some export fixes, and avoid clipping on resampling on import
author Chris Cannam
date Mon, 22 Oct 2007 09:45:35 +0000
parents 70a232b1f12a
children f14e2f7b24f7 6f6ab834449d
comparison
equal deleted inserted replaced
317:c324d410b096 318:7a4bd2c8585c
54 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const 54 QString toDelimitedDataString(QString delimiter, size_t sampleRate) const
55 { 55 {
56 QStringList list; 56 QStringList list;
57 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 57 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
58 list << image; 58 list << image;
59 list << label; 59 if (label != "") list << label;
60 return list.join(delimiter); 60 return list.join(delimiter);
61 } 61 }
62 62
63 struct Comparator { 63 struct Comparator {
64 bool operator()(const ImagePoint &p1, 64 bool operator()(const ImagePoint &p1,