Converts an aniframe to the CSV format required by inTRACKtive for browser-based interactive visualization of tracking data. The function creates unique integer track identifiers from combinations of grouping columns present in the data.
Details
inTRACKtive requires tracking data with a unique integer track_id for each
tracked object. This function automatically generates track IDs from any
combination of aniframe grouping columns that are present in the data.
The output format includes:
track_id: Integer identifier for each unique trackt: Time values (renamed fromtime)x,y: Spatial coordinatesz: Optional third dimension if present
The resulting CSV can be converted to inTRACKtive's Zarr format using their command-line tools or Python package.