13.11.2014 Views

CinePlex v3 Manual - Plexon Inc

CinePlex v3 Manual - Plexon Inc

CinePlex v3 Manual - Plexon Inc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5<br />

5.8 Aligning Tracker Coordinates to Frames<br />

If neural and video data files are collected using a <strong>Plexon</strong> NDAQ and <strong>CinePlex</strong><br />

Studio with tracking enabled, then the temporal relationship between Frame<br />

markers, the arrival of strobe codes to the MAP digital input card, and video<br />

tracker coordinates are depicted in the following illustration of the Activity window:<br />

Note:<br />

Note: the above screenshot depicts the timing assuming that the automatic corrections<br />

for (see previous section) are not enabled.<br />

When the video frame is available, <strong>CinePlex</strong> Studio immediately timestamps the<br />

file and stores the time in the AVI file along with the video frame image. When<br />

<strong>CinePlex</strong> Editor initially reads the AVI file, the time for each frame becomes a<br />

Frame Marker time, which appears as the blue tick marks in the previous illustration.<br />

After <strong>CinePlex</strong> Studio acquires the video frame, it feeds the video image to the<br />

tracking algorithm. Some time later, the tracking algorithm determines the tracking<br />

positions and <strong>CinePlex</strong> Studio encodes the tracking positions using the<br />

VideoTracker protocol and outputs a burst of strobed data words. The time<br />

between the frame timestamp and the sending of the strobe codes depends on<br />

how quickly the tracking algorithms finish, but the first strobed data word always<br />

occurs before the start of the next video frame. The words within a burst are<br />

clocked out at a constant rate every two milliseconds.<br />

When strobed data words arrive at the MAP, the MAP timestamps them as it<br />

reads them in, and then stores them as events in the PLX file. When <strong>CinePlex</strong><br />

Editor in turn reads these strobed events from the PLX file, they become occurrences<br />

of a Scalar marker named Strobed; in the preceding illustration, these<br />

occurrences appear as brown tick marks. Also, if <strong>CinePlex</strong> Editor recognizes that<br />

the strobed codes are in VideoTracker protocol, it decodes them into occurrences<br />

of one or more Coordinates markers (see “Table 5-1” on page 5-278). <strong>CinePlex</strong><br />

Editor then assigns times to the Coordinate marker occurrences. The assigned<br />

times are derived from the time of the first strobed event in each burst of strobed<br />

events. As a result, <strong>CinePlex</strong> Editor assigns times to the tracked positions that are<br />

later than the timestamps of the corresponding video frames; in the preceding<br />

illustration, the tracked positions (Position 1) are the red tick marks and the video<br />

frames are the blue tick marks.<br />

This time offset between the frame time and the tracking coordinates, although<br />

realistic, is not desirable in some cases. For example, one can simplify subsequent<br />

analysis when the coordinates corresponding to a video frame are equal to<br />

the time of the video frame. One can do this with <strong>CinePlex</strong> Editor, by using the<br />

284 <strong>CinePlex</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!