MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / save

Method save

apps/src/pcd_select_object_plane.cpp:630–641  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

628
629 /////////////////////////////////////////////////////////////////////////
630 void
631 save(const std::string& object_file, const std::string& plane_file)
632 {
633 PCDWriter w;
634 if (object_ && !object_->empty()) {
635 w.writeBinaryCompressed(object_file, *object_);
636 w.writeBinaryCompressed(plane_file, *plane_);
637 print_highlight("Object successfully segmented. Saving results in: %s, and %s.\n",
638 object_file.c_str(),
639 plane_file.c_str());
640 }
641 }
642
643 visualization::PCLVisualizer::Ptr cloud_viewer_;
644 visualization::ImageViewer::Ptr image_viewer_;

Callers 1

mainFunction · 0.45

Calls 2

emptyMethod · 0.45
writeBinaryCompressedMethod · 0.45

Tested by

no test coverage detected