Subversion Repositories seema-scanner

Rev

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

Rev 92 Rev 97
Line 1... Line 1...
1
#include "SMCaptureWorker.h"
1
#include "SMCaptureWorker.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 <QTime>
8
#include <QTime>
8
#include <QSettings>
9
#include <QSettings>
Line 48... Line 49...
48
 
49
 
49
    // Create Algorithm
50
    // Create Algorithm
50
    codec = settings.value("algorithm", "GrayCode").toString();
51
    codec = settings.value("algorithm", "GrayCode").toString();
51
    if(codec == "GrayCode")
52
    if(codec == "GrayCode")
52
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
53
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
-
 
54
    else if(codec == "GrayCodeHQ")
-
 
55
        algorithm = new AlgorithmGrayCodeHQ(screenCols, screenRows);
53
    else if(codec == "PhaseShift")
56
    else if(codec == "PhaseShift")
54
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
57
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
55
    else
58
    else
56
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
59
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
57
 
60