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

Convert from allocentric to egocentric reference frame #38

Open
roaldarbol opened this issue Sep 15, 2024 · 2 comments
Open

Convert from allocentric to egocentric reference frame #38

roaldarbol opened this issue Sep 15, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@roaldarbol
Copy link
Owner

roaldarbol commented Sep 15, 2024

For pose estimation. Should probably just take the keypoint of reference and subtract that from all other points. Maybe with an option to keep allocentric coordinates for the chosen keypoint so it's possible to convert back?

Could also keep the animal heading if two keypoints are given, 0 being either in-line or perpendicular to the line formed by the two keypoints.

If no reference is given, then compute the centroid and keep allocentric coordinates for that.

@roaldarbol roaldarbol added the enhancement New feature or request label Sep 15, 2024
@roaldarbol roaldarbol added this to the animovement v1.0 milestone Sep 15, 2024
@roaldarbol roaldarbol modified the milestones: Version 1.0, Future Sep 16, 2024
@roaldarbol roaldarbol moved this to 📝 Todo in animovement progress Sep 16, 2024
@roaldarbol roaldarbol modified the milestones: Future, Version 1.0 Sep 17, 2024
@roaldarbol
Copy link
Owner Author

At our movement meeting, Sofia made me realise that of course the heading of the animal in real world is also still needed, so that will have to be kept too.

I think this will need to be done in two steps:

  1. Centering (a point is chosen, could also be based on multiple points)
  2. Rotate everything else to maintain either a horisontal line on the x-axis or a vertical line on the y-axis

@roaldarbol roaldarbol moved this from 📝 Todo to 🚦 In Progress in animovement progress Dec 5, 2024
@roaldarbol
Copy link
Owner Author

Alright, translation has been implemented with the translate_coords function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🚦 In Progress
Development

No branches or pull requests

1 participant