flyfigures: Track segmentation and realignment

Description Usage Arguments Details Value

Description

Aligns stepsize consecutive frames from each start to a reference coordinate system where start is always (0,0) and end is always (x,0).

Usage

1
flyfigures(trx, stepsize = 6, output = "list")

Arguments

trx

a track data frame

stepsize

the size of the time window (in frames)

output

whether to output the minimal data (a matrix containing the x,y data as the real and imaginary parts of a complex number) or a more intuitive but somwehat fiddlier list format.

Details

From each frame, stepsize frames are selected and the position data (x and y) are aligned (shifted and rotated) to a common reference system, yielding transformed x and y. These are collected into a matrix of frame by stepsize elements (thus oversampling the data).

Value

either a frame by stepsize complex matrix (if output='complex') where Re is x and Im is y, or a list containing a matrix for x, one for y, and vectors for id and starttime to match each matrix row to a frame and fly unambiguosly.


PaolaCognigni/CTraxHelper documentation built on May 7, 2019, 11:57 p.m.