cross_detector: Detect crosses of the decision zone

View source: R/cross.R

cross_detectorR Documentation

Detect crosses of the decision zone

Description

Report timepoints when the animal crossed on either direction (in/out) the decision zone on the passed side. The decision zone is border pixels far from the center

Usage

cross_detector(tracker_data, border, side = c(-1, 1))

Arguments

tracker_data

IDOC tracker dataset where every row captures the position of one animal at one timepoint

border

Number of pixels from center to decision zone edge

side

Either LEFT (-1) or RIGHT (1)


shaliulab/idocr documentation built on June 1, 2025, 4:59 p.m.