| 344 | } |
| 345 | |
| 346 | static void export_frame_masks(const vapp_state& app) { |
| 347 | for (size_t i = 0; i < app.result.detections.size(); ++i) { |
| 348 | char path[256]; |
| 349 | snprintf(path, sizeof(path), "frame%04d_mask%02d.png", |
| 350 | app.frame_index, (int)i); |
| 351 | if (sam3_save_mask(app.result.detections[i].mask, path)) { |
| 352 | fprintf(stderr, "Exported %s\n", path); |
| 353 | } |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | // ── Main ───────────────────────────────────────────────────────────────────── |
| 358 |
no test coverage detected