| 166 | } |
| 167 | |
| 168 | void randomize_boxes(box_label *b, int n) |
| 169 | { |
| 170 | int i; |
| 171 | for(i = 0; i < n; ++i){ |
| 172 | box_label swap = b[i]; |
| 173 | int index = rand()%n; |
| 174 | b[i] = b[index]; |
| 175 | b[index] = swap; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | void correct_boxes(box_label *boxes, int n, float dx, float dy, float sx, float sy, int flip) |
| 180 | { |
no outgoing calls
no test coverage detected