Subversion Repositories seema-scanner

Rev

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

Rev 167 Rev 169
Line 73... Line 73...
73
        point.x = Q[i].x; point.y = Q[i].y; point.z = Q[i].z;
73
        point.x = Q[i].x; point.y = Q[i].y; point.z = Q[i].z;
74
        point.r = color[i][0]; point.g = color[i][1]; point.b = color[i][2];
74
        point.r = color[i][0]; point.g = color[i][1]; point.b = color[i][2];
75
        pointCloudPCL->points[i] = point;
75
        pointCloudPCL->points[i] = point;
76
    }
76
    }
77
 
77
 
78
    // Estimate surface normals
78
//    // Estimate surface normals
-
 
79
    // This is much to slow to leave it on by default
79
    pcl::NormalEstimation<pcl::PointXYZRGBNormal, pcl::PointXYZRGBNormal> ne;
80
//    pcl::NormalEstimation<pcl::PointXYZRGBNormal, pcl::PointXYZRGBNormal> ne;
80
    pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr pointCloudPCLCopy(new pcl::PointCloud<pcl::PointXYZRGBNormal>);
81
//    pcl::PointCloud<pcl::PointXYZRGBNormal>::Ptr pointCloudPCLCopy(new pcl::PointCloud<pcl::PointXYZRGBNormal>);
81
    pcl::copyPointCloud(*pointCloudPCL, *pointCloudPCLCopy);
82
//    pcl::copyPointCloud(*pointCloudPCL, *pointCloudPCLCopy);
82
    //ne.setKSearch(10);
83
//    //ne.setKSearch(10);
83
    ne.setRadiusSearch(0.5);
84
//    ne.setRadiusSearch(0.5);
84
    ne.setViewPoint(0.0, 0.0, 0.0);
85
//    ne.setViewPoint(0.0, 0.0, 0.0);
85
    ne.setInputCloud(pointCloudPCLCopy);
86
//    ne.setInputCloud(pointCloudPCLCopy);
86
    ne.compute(*pointCloudPCL);
87
//    ne.compute(*pointCloudPCL);
87
 
88
 
88
    // Assemble SMPointCloud data structure
89
    // Assemble SMPointCloud data structure
89
    SMPointCloud smPointCloud;
90
    SMPointCloud smPointCloud;
90
    smPointCloud.id = frameSequence.id;
91
    smPointCloud.id = frameSequence.id;
91
    smPointCloud.pointCloud = pointCloudPCL;
92
    smPointCloud.pointCloud = pointCloudPCL;