| 85 | } |
| 86 | |
| 87 | void |
| 88 | compute (ConstCloudPtr &input, Cloud &output, float resolution) |
| 89 | { |
| 90 | // Estimate |
| 91 | TicToc tt; |
| 92 | tt.tic (); |
| 93 | |
| 94 | print_highlight (stderr, "Computing "); |
| 95 | |
| 96 | GridMinimum<PointType> gm (resolution); |
| 97 | gm.setInputCloud (input); |
| 98 | gm.filter (output); |
| 99 | |
| 100 | print_info ("[done, "); print_value ("%g", tt.toc ()); print_info (" ms : "); print_value ("%d", output.width * output.height); print_info (" points]\n"); |
| 101 | } |
| 102 | |
| 103 | void |
| 104 | saveCloud (const std::string &filename, const Cloud &output) |
no test coverage detected