MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / export_frame_masks

Function export_frame_masks

examples/main_video.cpp:346–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346static 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

Callers 1

mainFunction · 0.85

Calls 1

sam3_save_maskFunction · 0.85

Tested by

no test coverage detected