Reads CSV files output by Anipose's 3D triangulation pipeline and converts them into aniframe format. The function handles the pivot from wide format (one column per keypoint-coordinate combination) to long format with separate rows for each keypoint at each time point.
Arguments
- path
Character string specifying the path to an Anipose CSV file. Typically these are found in the
pose-3ddirectory of your Anipose output.- unit_space
Character string specifying the spatial units of the coordinates. This should match the units you used for your calibration board dimensions (e.g., "mm", "cm", "m"). Default is "mm".
Value
An aniframe (tibble) with the following columns:
time: Frame numberkeypoint: Name of the tracked body partx,y,z: 3D coordinates in the specified unitsconfidence: Mean detection confidence across cameras (0-1 scale)
The aniframe includes metadata about the data source, filename, spatial units, and coordinate system.