00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVSIFTFEATURE_H
00026 #define QVSIFTFEATURE_H
00027
00028 #include <QVVector>
00029 #include <QVKeypoint>
00030
00039 class QVSiftFeature
00040 {
00041 public:
00042 QVKeypoint keypoint;
00043 QVVector descriptor;
00044
00051 QVSiftFeature(const QVKeypoint keypoint = QVKeypoint(), const QVVector descriptor = QVVector()):
00052 keypoint(keypoint), descriptor(descriptor)
00053 { }
00054
00055 double distance(const QVSiftFeature &other) const
00056 {
00057 return (descriptor - other.descriptor).norm2();
00058 }
00059 };
00060
00093 bool saveBRIEFDescriptorsInLoweSIFTFileFormat(const QString fileName, const QVector<QPointF> features, const QVector<unsigned int> descriptors);
00094
00124 bool saveSIFTDescriptorsInLoweSIFTFileFormat(const QString &fileName, const QList<QVSiftFeature> &features);
00125
00126 #endif