| 231 | // ---------------------------------------------------------------------------------------- |
| 232 | |
| 233 | std::vector<detection> make_random_detections(long num_dets) |
| 234 | { |
| 235 | /* |
| 236 | Finally, when we test the tracker we learned we will need to sample regular old |
| 237 | unlabeled detections. This function helps us do that. |
| 238 | */ |
| 239 | DLIB_CASSERT(num_dets <= num_objects, |
| 240 | "You can't ask for more detections than there are objects in our little simulation."); |
| 241 | |
| 242 | std::vector<detection> dets(num_dets); |
| 243 | for (unsigned long i = 0; i < dets.size(); ++i) |
| 244 | { |
| 245 | dets[i] = sample_detection_from_sensor(i); |
| 246 | } |
| 247 | return dets; |
| 248 | } |
| 249 | |
| 250 | // ---------------------------------------------------------------------------------------- |
| 251 |
no test coverage detected