Seen on the #NeuroMethods slack:
Any suggestions for algorithms to track pupil in mice? (Not #DeepLabCut )
@elduvelle_neuro Why not deeplabcut? Otherwise, I would start by defining an roi that includes the pupil and a bit of the sclera, then fit a 2d gaussian to the negative of the brightness signal within the roi, and get the pupil diameter as the diameter of the Gaussian's 2-sigma contour
@elduvelle_neuro
Yes, ROI definition is manual, but not sure if "automated" solutions
not based on neural networks generalize well across diverse filming conditions. You can train a DLC model from sessions representative of all those conditions, and the network should generalize well if the pupil is visible.