#include "fcdynamic.h"
Defines | |
#define | MAIN_WIN "main" |
#define | THRESH_WIN "thresh" |
#define | THRESH_TRACK "thresh_track" |
#define | CHAR_TO_INT(c) ((c) - 0x30) |
Functions | |
int | display_run (TrackingSequence *tseq, double frame, double exposure) |
shows the tracking software in action |
int display_run | ( | TrackingSequence * | tseq, | |
double | frame, | |||
double | exposure | |||
) |
shows the tracking software in action
display_run
shows a GUI with a live video feed from a camera or a collection of files from disk with the tracking algorithm running in the background. The GUI displays a gray rectangle representing a ROI and a smaller gray rectange inside the ROI representing the blob's bounding box. The user can set the desired threshold value and reposition the ROI at any time. The GUI reacts to the following commands when a keyboard button is pressed:
Notation: let 'x' represent the corresponding character on the keyboard let '0-9' represent either the 0, 1, 2, 3,..., 9 buttons on the keyboard let 'RMB' mean pressing the right mouse button let 'HLMB' mean hold the left mouse button down
To relocate the i-th ROI, press 'i': to enter relocate mode for the ROI '0-7': to select a particular ROI 'RMB': to finally reposition the ROI
To set the object's bounding box, press: 'HLMB': drag the mouse inside the ROI to draw the object's bounding box after drawing the desired box release the 'HLMB'
To threshold the image bounded by a ROI, press 't': to enter threshold mode (make sure to set the object bounding box first!!!) adjust the slider to the desired value located at the top of the GUI
To track an object, press 'p': to start the tracking (make sure to position the ROI and object bounding box)
To step through the images in the GUI frame by frame, press: 's': to enter step mode press any key, but 's' to advance to the next frame
To get help, press: 'h': to print a help message
To quite the GUI, press: 'q': to quit
tseq | the TrackingSequence specifying the active ROIs and their initial positions in the image prior to tracking an object | |
frame | the frame time (e.g. length of time between images) in microseconds | |
exposure | the exposure time (e.g. length of time the shutter is kept open) in microseconds |