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

Flat label list tab #170

Open
agnanas opened this issue Jun 10, 2024 · 8 comments
Open

Flat label list tab #170

agnanas opened this issue Jun 10, 2024 · 8 comments

Comments

@agnanas
Copy link

agnanas commented Jun 10, 2024

When editing image or video, we have the "Annotations" tab in the sidebar that list all annotations marked in the current image/video. This is extremely handy. Would be great if this tab was also available in the Largo tool. When dealing with recursively label trees because it is very hard to spot what labels are present unless we open a second window to know what to labels to search for.

@mzur
Copy link
Member

mzur commented Jun 10, 2024

Thank you for the suggestion! What do you think about showing labels without annotations in a muted text color like this?

image

@mzur mzur changed the title When viewing a labelled volume in Largo, would be great to have an annotations view to see all the labels present in the volume Highlight labels with annotations Jun 10, 2024
@dlangenk
Copy link
Member

dlangenk commented Jun 10, 2024

Can you dim it a little more? The difference is not that big in your example image. But I guess this is helpful.

@mzur
Copy link
Member

mzur commented Jun 10, 2024

Can you dim it a little more?

No 😄 This is the "muted text" color that is used everywhere else in BIIGLE, too.

@agnanas What is your opinion?

@agnanas
Copy link
Author

agnanas commented Jun 10, 2024

That does make it prominent in a stand alone label tree structure. But in a recursive label tree (which starts with Animalia or biota and all the way down), I would still have to expand everything manually to see which labels are muted and which are not. Am I understanding this correctly?
image

@mzur
Copy link
Member

mzur commented Jun 10, 2024

This is correct. So you would prefer a flat list of labels instead, hiding all (parent) labels that have no annotations?

@agnanas
Copy link
Author

agnanas commented Jun 10, 2024

Ideally, I'd like to keep the label trees themselves hierarchical and have the tree visible for any relabeling if needed. But just to visualise all the boxes containing a label, a tab similar to what you have in the video or image mode for annotations would be great in Largo as well. Something like shown below, that way, I know the labels for my current volume and I can go labelwise to see all annotations and can decide on deletions or relabeling.
image

@mzur
Copy link
Member

mzur commented Jun 11, 2024

That's it! So to sum it up:

  • Add a new sidebar tab with a "list" icon.
  • When the tab is opened, a database query is executed to fetch the list of labels with annotations and the annotation count. The query may take a few seconds.
  • The sidebar tab then shows the list of labels as in the screenshot above (without the filter component). A click on a label selects the label.

This solves multiple issues at the same time:

  • The tab is closed by default so the expensive database query is only executed when needed.
  • The user can choose between the usual hierarchical label trees and the flat list of filtered labels.
  • We can show the annotation count for each label (resolves Show complete count of annotations at each label #98).

Any objections?

@mzur mzur changed the title Highlight labels with annotations Flat label list tab Jun 11, 2024
@agnanas
Copy link
Author

agnanas commented Jun 11, 2024

Spot on! No objections what to ever

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

No branches or pull requests

3 participants