Subversion Repositories seema-scanner

Rev

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

Rev 207 Rev 208
Line 51... Line 51...
51
        algorithm = new AlgorithmPhaseShiftThreeFreq(resX, resY);
51
        algorithm = new AlgorithmPhaseShiftThreeFreq(resX, resY);
52
    else if(codec == "PhaseShiftEmbedded")
52
    else if(codec == "PhaseShiftEmbedded")
53
        algorithm = new AlgorithmPhaseShiftEmbedded(resX, resY);
53
        algorithm = new AlgorithmPhaseShiftEmbedded(resX, resY);
54
    else if(codec == "LineShift")
54
    else if(codec == "LineShift")
55
        algorithm = new AlgorithmLineShift(resX, resY);
55
        algorithm = new AlgorithmLineShift(resX, resY);
56
    else
56
    else{
57
        std::cerr << "SLScanWorker: invalid codec " << codec.toStdString() << std::endl;
57
        std::cerr << "SLScanWorker: invalid codec (Please set codec in preferences): " << codec.toStdString() << std::endl;
-
 
58
        return; // otherwise segfault TODO no default?
-
 
59
    }
58
 
60
 
59
    time.start();
61
    time.start();
60
 
62
 
61
    // Get 3D Points
63
    // Get 3D Points
62
    std::vector<cv::Point3f> Q;
64
    std::vector<cv::Point3f> Q;
Line 129... Line 131...
129
    // Emit result
131
    // Emit result
130
    #pragma omp critical (CBRECOupdateUI1)
132
    #pragma omp critical (CBRECOupdateUI1)
131
    {
133
    {
132
        emit newPointCloud(smPointCloud);
134
        emit newPointCloud(smPointCloud);
133
        std::cout << "SMReconstructionWorker: " << time.elapsed() << "ms" << std::endl;
135
        std::cout << "SMReconstructionWorker: " << time.elapsed() << "ms" << std::endl;
-
 
136
        std::cout << "SMReconstructionWorker: " << smPointCloud.pointCloud->size() << " Points" << std::endl;
134
    }
137
    }
135
}
138
}
136
 
139
 
137
void SMReconstructionWorker::reconstructPointClouds(const std::vector<SMFrameSequence> &frameSequences){
140
void SMReconstructionWorker::reconstructPointClouds(const std::vector<SMFrameSequence> &frameSequences){
138
    // Process sequentially
141
    // Process sequentially