times: Calculate time in zones

View source: R/times.R

timesR Documentation

Calculate time in zones

Description

times calculates the time in seconds that the tracked particle remains in the zones of interest. The function uses the framerate of the analyzed video and the number of frames located within the zone of interest as parameters to calculate the result.

Usage

times(output.swtr = NA, zones.swtr = NA, video.swtr = NA)

Arguments

output.swtr

Swistrack4 output containing the xy coordinates and frames of the video tracked particle

zones.swtr

Table with the coordinates of the zones of interest created with the zones function

video.swtr

Object containing the information of the video created with the track_video function

Value

A table containing the values of time that the particle remained in each of the zones of interest.

Examples

times(output.swtr, zones.swtr, video.swtr)


kalebepinto/swistrackr documentation built on June 30, 2022, 6:35 a.m.