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

Function saveCloud

tools/pclzf2pcd.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105template <typename T> void
106saveCloud (const std::string &filename, const pcl::PointCloud<T> &cloud)
107{
108 TicToc tt;
109 tt.tic ();
110
111 print_highlight ("Saving "); print_value ("%s ", filename.c_str ());
112
113 pcl::PCDWriter writer;
114 writer.writeBinaryCompressed (filename, cloud);
115
116 print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", cloud.width * cloud.height); print_info (" points]\n");
117}
118
119/* ---[ */
120int

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