Subversion Repositories seema-scanner

Rev

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

Rev 52 Rev 70
Line 45... Line 45...
45
 
45
 
46
    // Create rotation stage
46
    // Create rotation stage
47
    rotationStage = new RotationStage();
47
    rotationStage = new RotationStage();
48
 
48
 
49
    // Create Algorithm
49
    // Create Algorithm
50
    CodingDir dir = (CodingDir)settings.value("pattern/direction", CodingDirHorizontal).toInt();
-
 
51
    if(dir == CodingDirNone)
-
 
52
        std::cerr << "SMCaptureWorker: invalid coding direction " << std::endl;
-
 
53
 
-
 
54
    codec = settings.value("codec", "GrayCode").toString();
50
    codec = settings.value("codec", "GrayCode").toString();
55
    if(codec == "PhaseShift")
51
    if(codec == "PhaseShift")
56
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows, dir);
52
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
57
    else if(codec == "GrayCode")
53
    else if(codec == "GrayCode")
58
        algorithm = new AlgorithmGrayCode(screenCols, screenRows, dir);
54
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
59
    else
55
    else
60
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
56
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
61
 
57
 
62
 
58
 
63
    // Upload patterns to projector/GPU
59
    // Upload patterns to projector/GPU