Subversion Repositories seema-scanner

Rev

Rev 121 | Rev 128 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 121 Rev 123
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 "AlgorithmPhaseShift.h"
-
 
6
#include "AlgorithmLineShift.h"
6
 
7
 
7
#include <QCoreApplication>
8
#include <QCoreApplication>
8
#include <QTime>
9
#include <QTime>
9
#include <QSettings>
10
#include <QSettings>
10
#include <QtTest/QTest>
11
#include <QtTest/QTest>
Line 55... Line 56...
55
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
56
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
56
    else if(codec == "GrayCodeHorzVert")
57
    else if(codec == "GrayCodeHorzVert")
57
        algorithm = new AlgorithmGrayCodeHorzVert(screenCols, screenRows);
58
        algorithm = new AlgorithmGrayCodeHorzVert(screenCols, screenRows);
58
    else if(codec == "PhaseShift")
59
    else if(codec == "PhaseShift")
59
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
60
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
-
 
61
    else if(codec == "LineShift")
-
 
62
        algorithm = new AlgorithmLineShift(screenCols, screenRows);
60
    else
63
    else
61
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
64
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
62
 
65
 
63
 
66
 
64
    // Upload patterns to projector/GPU
67
    // Upload patterns to projector/GPU