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

Function saveCloud

tools/obj2pcd.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61template <typename T> void
62saveCloud (const std::string &filename, const pcl::PointCloud<T> &cloud)
63{
64 TicToc tt;
65 tt.tic ();
66
67 print_highlight ("Saving "); print_value ("%s ", filename.c_str ());
68
69 PCDWriter w;
70 w.writeBinaryCompressed (filename, cloud);
71
72 print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", cloud.width * cloud.height); print_info (" points]\n");
73}
74
75/* ---[ */
76int

Callers 1

mainFunction · 0.70

Calls 4

print_valueFunction · 0.85
ticMethod · 0.80
tocMethod · 0.80
writeBinaryCompressedMethod · 0.45

Tested by

no test coverage detected