| 101 | } |
| 102 | |
| 103 | void |
| 104 | saveCloud (const std::string &filename, const Cloud &output) |
| 105 | { |
| 106 | TicToc tt; |
| 107 | tt.tic (); |
| 108 | |
| 109 | print_highlight ("Saving "); print_value ("%s ", filename.c_str ()); |
| 110 | |
| 111 | PCDWriter w; |
| 112 | w.writeBinaryCompressed (filename, output); |
| 113 | |
| 114 | print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", output.width * output.height); print_info (" points]\n"); |
| 115 | } |
| 116 | |
| 117 | int |
| 118 | batchProcess (const std::vector<std::string> &pcd_files, std::string &output_dir, |
no test coverage detected