Subversion Repositories seema-scanner

Rev

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

Rev 191 Rev 208
Line 54... Line 54...
54
    // Note: using the color handler makes a copy of the rgb fields
54
    // Note: using the color handler makes a copy of the rgb fields
55
    colorHandler->setInputCloud(pointCloud.pointCloud);
55
    colorHandler->setInputCloud(pointCloud.pointCloud);
56
 
56
 
57
    if(!visualizer->updatePointCloud(pointCloud.pointCloud, *colorHandler, stringId)){
57
    if(!visualizer->updatePointCloud(pointCloud.pointCloud, *colorHandler, stringId)){
58
        visualizer->addPointCloud(pointCloud.pointCloud, *colorHandler, stringId);
58
        visualizer->addPointCloud(pointCloud.pointCloud, *colorHandler, stringId);
-
 
59
        visualizer->setPointCloudRenderingProperties(
59
        visualizer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2.0, stringId);
60
                    pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2.0, stringId);
60
     }
61
     }
61
 
62
 
62
    // transformation matrix in Eigen format
63
    // transformation matrix in Eigen format
63
    cv::Mat TransformCV(3, 4, CV_32F);
64
    cv::Mat TransformCV(3, 4, CV_32F);
64
    cv::Mat(pointCloud.R).copyTo(TransformCV.colRange(0, 3));
65
    cv::Mat(pointCloud.R).copyTo(TransformCV.colRange(0, 3));
Line 82... Line 83...
82
    // Note: using the color handler makes a copy of the rgb fields
83
    // Note: using the color handler makes a copy of the rgb fields
83
    colorHandler->setInputCloud(pointCloud.pointCloud);
84
    colorHandler->setInputCloud(pointCloud.pointCloud);
84
 
85
 
85
    if(!visualizer->updatePointCloud(pointCloud.pointCloud, *colorHandler, stringId)){
86
    if(!visualizer->updatePointCloud(pointCloud.pointCloud, *colorHandler, stringId)){
86
        visualizer->addPointCloud(pointCloud.pointCloud, *colorHandler, stringId);
87
        visualizer->addPointCloud(pointCloud.pointCloud, *colorHandler, stringId);
-
 
88
        visualizer->setPointCloudRenderingProperties(
87
        visualizer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2.0, stringId);
89
                    pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2.0, stringId);
88
     }
90
     }
89
 
91
 
90
    this->update();
92
    this->update();
91
    emit pointCloudDataChanged();
93
    emit pointCloudDataChanged();
92
 
94