acia.tracking.processor.utils#
Utility functions for the tracking processors
- acia.tracking.processor.utils.overlay_to_masks(segmentation, height, width)[source]#
Rasterize an overlay into the
(T, height, width)label stack trackers want.Every tracking backend takes its segmentation this way (Trackastra, LapTrack, PyUAT, Ultrack), so this is on the critical path of each of them.
Frame
tof the returned stack holds the detections of frametof the overlay – indexed absolutely. The previous implementation built the stack fromOverlay.timeIterator(), which starts at the overlay’s first populated frame, so an overlay whose earliest detection sat on frame 3 put that frame’s cells intomasks[0]and handed the tracker a segmentation silently shifted against its images.