Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doubts about nslr_hmm algorithm #9

Open
giuseppecartella opened this issue Aug 22, 2023 · 3 comments
Open

Doubts about nslr_hmm algorithm #9

giuseppecartella opened this issue Aug 22, 2023 · 3 comments

Comments

@giuseppecartella
Copy link

Hi!

I have some questions about the usage of the nslr_hmm algorithm (classify_nslr_hmm() function).

I have x and y coordinates (in pixels) from eye tracking recording. The origin (0,0) is on the upper left corner of an image.
Should I convert them to coordinates relative to the center and then use the cateyes.pixel_to_degree function?

Thank you
Giuseppe

@DiGyt
Copy link
Owner

DiGyt commented Aug 22, 2023

Hey Giuseppe 🙂

The NSLR-HMM uses angular data (=the angle of the eye relative to the center/fixation point) as input. If you have flat coordinates/pixels you can use cateyes.utils.coords_to_degree or cateyes.utils.pixel_to_degree to convert both gaze arrays to degrees.

Hope this helps 👍

@DiGyt
Copy link
Owner

DiGyt commented Aug 25, 2023

Hey @beppefolder I just updated the code and the documentation for these functions. Hope they are more intuitive and easier to understand now. If they helped solving your problem, feel free to close the issue :)

@giuseppecartella
Copy link
Author

Hi @DiGyt,
At the end I had to start another work and I stopped the previous one. I 'll let you know in some days as soon I will recover the project.
For the moment, thank you for the help and for enhancing the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants