Frama-99 / Whisking-Analysis

Analysis of landmark points generated by DeepLabCut for rodent whisking
MIT License
1 stars 0 forks source link

Blink tracking #3

Open Frama-99 opened 4 years ago

Frama-99 commented 4 years ago

When the landmark points for the medial and lateral canthus + at least one point along the lower eyelid + at least one point along the upper eyelid is localized with high confidence, fit an ellipse over the eye where the medial and lateral canthus form the major axis. The blink ‘signal’ will then be the minor axis of this ellipse measured in pixels.

Frama-99 commented 4 years ago

Where these criteria are not met, define the blink signal as pixels = 0 (i.e. the eye is closed)

Frama-99 commented 4 years ago

Instead of the method above, define the blink signal as the distance between the medial and lateral canthus. This produced good results.