37 processingPointCloudPtr = inputObjectPointCloudPtr;
43 auto result = boost::make_shared<std::set<int>>();
46 CropBoxPtr cropBoxPtr = cropBoxWrapper->getCropBox();
47 cropBoxPtr->setInputCloud(processingPointCloudPtr);
48 cropBoxPtr->filter(*filteredObjectIndices);
50 result->insert(filteredObjectIndices->begin(), filteredObjectIndices->end());
54 std::copy(result->begin(), result->end(), std::back_inserter(*indicesPtr));
boost::shared_ptr< std::vector< CropBoxWrapperPtr > > getCropBoxWrapperPtrList()
getCropBoxPtrList
static boost::shared_ptr< std::vector< CropBoxWrapperPtr > > readCropBoxDataFromXMLFile(const std::string &xml_path)
readCropBoxDataFromXMLFile reads the given xml file and returns a list of CropBoxWrapper.
pcl::PointCloud< ObjectPoint > ObjectPointCloud
void doFiltering(IndicesPtr &indicesPtr)
doFiltering Does the actual filtering. setInputCloud(...) must be called before.
CropBoxFilter(const std::string &xml_path)
CropBoxFilter.
virtual ObjectPointCloudPtr & getInputCloud()
std::vector< int > Indices
this namespace contains all generally usable classes.
boost::shared_ptr< std::vector< CropBoxWrapperPtr > > mCropBoxPtrList
boost::shared_ptr< Indices > IndicesPtr
virtual IndicesPtr & getIndices()
ObjectPointCloud::Ptr ObjectPointCloudPtr