00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef READSFMRECONSTRUCTION_H
00026 #define READSFMRECONSTRUCTION_H
00027
00028 #include <QFile>
00029 #include <qvprojective.h>
00030
00031 #ifndef DOXYGEN_IGNORE_THIS
00032 bool readNumbersFromFile(const QString fileName, QVVector &result, const int estimatedSize = 10000);
00033 bool readNumbersFromFile(QFile &file, QVVector &numbers, const int estimatedSize = 10000);
00034 bool readNumbersFromTextStream(QTextStream &stream, QVVector &result, const int estimatedSize = 10000);
00035 bool readPoints_laSBA(const QString fileName, QList<QV3DPointF> &points3D, QList<QHash<int, QPointF> > &pointTrackings);
00036 #endif // DOXYGEN_IGNORE_THIS
00037
00186 bool readSfMReconstruction( const QString &path,
00187 QList<QVMatrix> &cameraCalibrations,
00188 QList<QVCameraPose> &cameraPoses,
00189 QList<QV3DPointF> &points3D,
00190 QList<QHash<int, QPointF> > &pointsProjections
00191 );
00192
00209 bool readReconstruction_NVM( const QString fileName,
00210 QList<QString> &imageFiles,
00211 QList<QVMatrix> &cameraCalibrationMatrices,
00212 QList<QVCameraPose> &cameraPoses,
00213 QList<QV3DPointF> &points3D,
00214 QList< QColor > &rgbColors,
00215 QList< QHash< int, QPointF> > &pointTrackings);
00216
00217 #ifndef DOXYGEN_IGNORE_THIS
00218 void writePoints_laSBA(const QString fileName, const QList<QV3DPointF> &points3D, const QList<QHash<int, QPointF> > &pointTrackings);
00219 void writeCameras_laSBA(const QString &fileName, const QList<QVCameraPose> &cameraPoses);
00220 bool saveMatrix(const QString fileName, const QVMatrix &matrix);
00221 QVVector readVector(const QString &line);
00222 #endif // DOXYGEN_IGNORE_THIS
00223
00224 #endif
00225