| 101 | } |
| 102 | |
| 103 | bool |
| 104 | loadCloud (const std::string &filename, CloudT::Ptr &cloud) |
| 105 | { |
| 106 | TicToc tt; |
| 107 | print_highlight ("Loading "); print_value ("%s ", filename.c_str ()); |
| 108 | |
| 109 | tt.tic (); |
| 110 | if (loadPCDFile (filename, *cloud) < 0) |
| 111 | return (false); |
| 112 | print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", cloud->width * cloud->height); print_info (" points]\n"); |
| 113 | |
| 114 | return (true); |
| 115 | } |
| 116 | |
| 117 | void |
| 118 | compute (const CloudT::Ptr &input, std::vector<FeatureT::Ptr> &trained_features, |
no test coverage detected