Subversion Repositories seema-scanner

Rev

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

Rev 123 Rev 128
Line 1... Line 1...
1
#include "SMCaptureWorker.h"
1
#include "SMCaptureWorker.h"
2
 
2
 
3
#include "AlgorithmGrayCode.h"
3
#include "AlgorithmGrayCode.h"
4
#include "AlgorithmGrayCodeHorzVert.h"
4
#include "AlgorithmGrayCodeHorzVert.h"
5
#include "AlgorithmPhaseShift.h"
5
#include "AlgorithmPhaseShiftTwoFreq.h"
-
 
6
#include "AlgorithmPhaseShiftThreeFreq.h"
6
#include "AlgorithmLineShift.h"
7
#include "AlgorithmLineShift.h"
7
 
8
 
8
#include <QCoreApplication>
9
#include <QCoreApplication>
9
#include <QTime>
10
#include <QTime>
10
#include <QSettings>
11
#include <QSettings>
Line 54... Line 55...
54
    codec = settings.value("algorithm", "GrayCode").toString();
55
    codec = settings.value("algorithm", "GrayCode").toString();
55
    if(codec == "GrayCode")
56
    if(codec == "GrayCode")
56
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
57
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
57
    else if(codec == "GrayCodeHorzVert")
58
    else if(codec == "GrayCodeHorzVert")
58
        algorithm = new AlgorithmGrayCodeHorzVert(screenCols, screenRows);
59
        algorithm = new AlgorithmGrayCodeHorzVert(screenCols, screenRows);
59
    else if(codec == "PhaseShift")
60
    else if(codec == "PhaseShiftTwoFreq")
60
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
61
        algorithm = new AlgorithmPhaseShiftTwoFreq(screenCols, screenRows);
-
 
62
    else if(codec == "PhaseShiftThreeFreq")
-
 
63
        algorithm = new AlgorithmPhaseShiftThreeFreq(screenCols, screenRows);
61
    else if(codec == "LineShift")
64
    else if(codec == "LineShift")
62
        algorithm = new AlgorithmLineShift(screenCols, screenRows);
65
        algorithm = new AlgorithmLineShift(screenCols, screenRows);
63
    else
66
    else
64
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
67
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
65
 
68