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

Multi annotation #28

Merged
merged 7 commits into from
Dec 3, 2024
Merged

Multi annotation #28

merged 7 commits into from
Dec 3, 2024

Conversation

inesdv26
Copy link
Collaborator

This pull request introduces a dropdown menu that allows users to toggle between two modes:
Single Annotation Mode: in this mode, the color of the bounding boxes remains fixed and cannot be changed.
Multi-Annotation Mode: users can change the color of the bounding boxes using the following keyboard shortcuts:

  • Press 'G' to change the box color to green.
  • Press 'H' to change the box color to blue.
  • Press 'Z' to reset the bounding box to its original color.
    When the 'Save Boxes' button is clicked, the class label of the organoid is determined based on the bounding box color:
  • Class Label 0 for green.
  • Class Label 1 for blue.

Copy link
Member

@francesco-campi francesco-campi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, the tool has all the features we discussed about. I left you a few comments to improve the code structure and the way you display messages. Let me know what do you think.

napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Show resolved Hide resolved
napari_organoid_counter/_widget.py Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
Copy link
Member

@francesco-campi francesco-campi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIce, it looks good! I left you two minor comments, after this we can merge into the main brach.

napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
napari_organoid_counter/_widget.py Outdated Show resolved Hide resolved
@francesco-campi francesco-campi merged commit 4df8bf1 into main Dec 3, 2024
1 of 7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants