EIN-lab / pupillometry-matlab

https://ein-lab.github.io/pupillometry-raspi
Other
8 stars 3 forks source link

Pupil's size per frame? #28

Open IgorTellez opened 3 years ago

IgorTellez commented 3 years ago

Is there a function that can provide/show the pupil's area of each frame dynamically? Something like the attached GIF image, also shown at: https://ein-lab.github.io/pupillometry-raspi/MATLAB.html

labeled_video

This would be very helpful to know how the algorithm defines and measures the pupil through the whole experiment/video.

Thanks in advance for your attention.

kferrari commented 3 years ago

Dear Igor

Yes, you can set the 'saveLabeledFrames' parameter 'true' to output the images. This is how we made the example you referenced. In cases where it's not possible for the algorithm to find a circle, it will attempt to fit an ellipse and it will output half of the major axis length as the radius.

Please let me know if you have any further questions.

All the best, Kim