Skip to content
Browse files

logging output to one line for Matlab input

  • Loading branch information...
1 parent 3ccc23c commit 05909ed64dc6ae0de8671a5e89916c9c5866d2bb @andrewdyates committed Nov 28, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Sources/Video/video_stage.c
6 Sources/Video/video_stage.c
@@ -143,11 +143,11 @@ C_RESULT output_gtk_stage_transform( void *cfg, vp_api_io_data_t *in, vp_api_io_
fprintf(fp, "%c", pixbuf_data[i]);
fp = fopen("/home/a/meanshift_log.txt", "a");
// write log
- fprintf(fp, "Frame number: %d; ", frame);
- fprintf(fp, "Mass: %d; Centroid: (%d, %d);", mass, x_center, y_center);
- fprintf(fp, "Meanshift Width: %d; Height: %d\n", width, height);
+ // framenum, mass, centroid_x, centroid_y, width, height
+ fprintf(fp, "%d %d %d %d %d %d\n", frame, mass, x_center, y_center, width, height);
// Get mask display
display_mask(mask_buf, display_data, x_center, y_center);

0 comments on commit 05909ed

Please sign in to comment.
Something went wrong with that request. Please try again.