点云技术相关产学研社区

 找回密码
 立即注册加入PCL中国点云技术相关产学研社区

扫一扫,访问微社区

查看: 3978|回复: 0

CropBox和PCA得到的OBB进行数据的分割提取

[复制链接]
发表于 2017-7-19 10:16:35 | 显示全部楼层 |阅读模式
          /* pcl::CropBox<pcl::PointXYZRGBA> cropFilter;
                           Eigen::Vector4f minPoint;
                           minPoint.head(3)=min_point_OBB.getVector3fMap();
                           minPoint[3]=1;
                           Eigen::Vector4f maxPoint;
                           maxPoint.head(3)=max_point_OBB.getVector3fMap();
                           maxPoint[3]=1;
                           Eigen::Vector3f boxTranslatation;
                           boxTranslatation=position_OBB.getVector3fMap();
                           Eigen::Quaternionf quat (rotational_matrix_OBB);
                           Eigen::Vector3f rotation;
                           rotation=quat.vec();
                           cropFilter.setInputCloud(cloud_input_);
                           cropFilter.setMin(minPoint);
                           cropFilter.setMax(maxPoint);
                           cropFilter.setTranslation(boxTranslatation);
                           cropFilter.setRotation(rotation);

                           cropFilter.filter(*optimized_result_);*/

回复

使用道具 举报

本版积分规则

QQ|小黑屋|点云技术相关产学研社区 ( 陕ICP备13001629号 )

GMT+8, 2024-4-19 12:10 , Processed in 2.673567 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表