| 180 | |
| 181 | template <typename detection> |
| 182 | std::vector<detection> make_random_detections(long num_dets) |
| 183 | { |
| 184 | DLIB_CASSERT(num_dets <= num_objects, |
| 185 | "You can't ask for more detections than there are objects in our little simulation."); |
| 186 | |
| 187 | std::vector<detection> dets(num_dets); |
| 188 | for (unsigned long i = 0; i < dets.size(); ++i) |
| 189 | { |
| 190 | dets[i] = sample_detection_from_sensor<detection>(i); |
| 191 | } |
| 192 | randomize_samples(dets, rnd); |
| 193 | return dets; |
| 194 | } |
| 195 | |
| 196 | // ---------------------------------------------------------------------------------------- |
| 197 |
nothing calls this directly
no test coverage detected