Created
May 1, 2018 05:52
-
-
Save Kyungpyo-Kim/02368d331ad812bad7801d3a7f2a05c4 to your computer and use it in GitHub Desktop.
PCL, Random sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pcl/filters/random_sample.h> | |
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud_; | |
pcl::PointCloud<pcl::PointXYZRGB>::Ptr track_cloud(new pcl::PointCloud<pcl::PointXYZRGB>); | |
pcl::RandomSample <pcl::PointXYZRGB> random; | |
random.setInputCloud(cloud_); | |
random.setSeed (std::rand ()); | |
random.setSample((unsigned int)(100)); | |
random.filter(*track_cloud); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cloud_ 의 point 숫자가 setSample 숫자보다 적으면 모두다 나옴