Subversion Repositories seema-scanner

Rev

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

Rev 71 Rev 74
Line 51... Line 51...
51
    if(codec == "GrayCode")
51
    if(codec == "GrayCode")
52
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
52
        algorithm = new AlgorithmGrayCode(screenCols, screenRows);
53
    else if(codec == "PhaseShift")
53
    else if(codec == "PhaseShift")
54
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
54
        algorithm = new AlgorithmPhaseShift(screenCols, screenRows);
55
    else
55
    else
56
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
56
        std::cerr << "SMCaptureWorker: invalid codec " << codec.toStdString() << std::endl;
57
 
57
 
58
 
58
 
59
    // Upload patterns to projector/GPU
59
    // Upload patterns to projector/GPU
60
    for(unsigned int i=0; i<algorithm->getNPatterns(); i++){
60
    for(unsigned int i=0; i<algorithm->getNPatterns(); i++){
61
        cv::Mat pattern = algorithm->getEncodingPattern(i);
61
        cv::Mat pattern = algorithm->getEncodingPattern(i);