Subversion Repositories seema-scanner

Rev

Rev 75 | Rev 100 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 75 Rev 97
Line 1... Line 1...
1
#include "SMReconstructionWorker.h"
1
#include "SMReconstructionWorker.h"
2
 
2
 
3
#include "AlgorithmGrayCode.h"
3
#include "AlgorithmGrayCode.h"
-
 
4
#include "AlgorithmGrayCodeHQ.h"
4
#include "AlgorithmPhaseShift.h"
5
#include "AlgorithmPhaseShift.h"
5
 
6
 
6
#include <QCoreApplication>
7
#include <QCoreApplication>
7
#include <QSettings>
8
#include <QSettings>
8
 
9
 
Line 27... Line 28...
27
    int resX = settings.value("projector/resX").toInt();
28
    int resX = settings.value("projector/resX").toInt();
28
    int resY = settings.value("projector/resY").toInt();
29
    int resY = settings.value("projector/resY").toInt();
29
    QString codec = settings.value("algorithm", "GrayCode").toString();
30
    QString codec = settings.value("algorithm", "GrayCode").toString();
30
    if(codec == "GrayCode")
31
    if(codec == "GrayCode")
31
        algorithm = new AlgorithmGrayCode(resX, resY);
32
        algorithm = new AlgorithmGrayCode(resX, resY);
-
 
33
    else if(codec == "GrayCodeHQ")
-
 
34
        algorithm = new AlgorithmGrayCodeHQ(resX, resY);
32
    else if(codec == "PhaseShift")
35
    else if(codec == "PhaseShift")
33
        algorithm = new AlgorithmPhaseShift(resX, resY);
36
        algorithm = new AlgorithmPhaseShift(resX, resY);
34
    else
37
    else
35
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
38
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
36
 
39