| 59 | } |
| 60 | |
| 61 | template <typename T> void |
| 62 | saveCloud (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 | /* ---[ */ |
| 76 | int |
no test coverage detected