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

napari widget for loading bboxes datasets from file #310

Open
niksirbi opened this issue Sep 16, 2024 · 0 comments
Open

napari widget for loading bboxes datasets from file #310

niksirbi opened this issue Sep 16, 2024 · 0 comments
Labels
enhancement New optional feature

Comments

@niksirbi
Copy link
Member

Is your feature request related to a problem? Please describe.
#253 is introducing a widget for loading movement poses datasets (pose tracks) from file into a napari Points layers.
An equivalent widget for loading movement bboxes datasets is lacking.

Describe the solution you'd like
Implement a "Load bboxes" widget, which would:

  • load the centroid position into a Points layers
  • load the box itself (derived from centroid position and shape) into a napari Shapes layer.

The most straightforward approach would be to add a new BboxesLoader class in movement/napari/_loader_widgets.py and new bboxes_to_napari_tracks and bboxes_to_napari_shapes functions to movement/napari/convert.py.

Describe alternatives you've considered
The two widgets (poses and bboxes) could live as separate collapsible widgets, or could be implemented within the same collapsible widget with some way of separating them (e.g. tabs, or a dropdown to select the dataset type).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New optional feature
Projects
Status: 🤔 Triage
Development

No branches or pull requests

1 participant