Subversion Repositories seema-scanner

Rev

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

Rev 70 Rev 71
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
    codec = settings.value("codec", "GrayCode").toString();
50
    codec = settings.value("algorithm", "GrayCode").toString();
51
    if(codec == "PhaseShift")
-
 
52
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
-
 
53
    else if(codec == "GrayCode")
51
    if(codec == "GrayCode")
54
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
52
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
-
 
53
    else if(codec == "PhaseShift")
-
 
54
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
55
    else
55
    else
56
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
56
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
57
 
57
 
58
 
58
 
59
    // Upload patterns to projector/GPU
59
    // Upload patterns to projector/GPU