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

Navigational features and the sf package #44

Open
roaldarbol opened this issue Sep 23, 2024 · 1 comment
Open

Navigational features and the sf package #44

roaldarbol opened this issue Sep 23, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@roaldarbol
Copy link
Owner

roaldarbol commented Sep 23, 2024

We should attempt to rely on the super well-maintained sf package. It contains a lot of really nice function which could be leveraged really quickly.

  • First of all, it contains all the information needed to represent geometries, such as arenas.
  • It can create a bounding box (st_bbox) from a vector of points (need to find a way to create a vector of points (st_point) form two vectors (x and y coordinates). Can also create circles (https://r-spatial.github.io/sf/reference/st_nearest_feature.html), so maybe find good way to do that from animovement (and here st_buffer can be used to generate zones)
  • It contains relational functions like is within, distance to, nearest point, nearest feature, overlaps with and more.
  • st_make_grid which can be useful for something like an exploratory behaviour test.
  • st_buffer which can also be used to make zones (https://r-spatial.github.io/sf/articles/sf1.html#geometrycollection).
  • st_centroid can be used to generate a centroid for top view pose estimation animals.
@roaldarbol roaldarbol added the enhancement New feature or request label Sep 23, 2024
@roaldarbol roaldarbol added this to the Version 1.0 milestone Sep 23, 2024
@roaldarbol roaldarbol moved this to 🔬 Triage in animovement progress Oct 29, 2024
@roaldarbol
Copy link
Owner Author

See neuroinformatics-unit/movement#377 for discussion of ROI.

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: 🔬 Triage
Development

No branches or pull requests

1 participant