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

Smoother multilabel annotation of multiple 3D images and metric generation #19

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

thanushipeiris
Copy link

@thanushipeiris thanushipeiris commented Feb 18, 2024

Hi @Karol-G ,

This PR improves the 3D annotation workflow for multilabelling of multiple images.

Main changes are:

  • When user clicks on a labels layer, the SAM output layer is changed to that label (enables smoother multilabel imaging instead of having to press the Activate/Deactivate buttons each time).
  • Allows for reading in precomputed embeddings which speeds up annotation time and makes using this plugin feasible for large 3D images. (I plan to add bash scripts that I've been using to generate these embeddings from IMARIS files to the readme as an example).
  • Saves annotations, generates an excel spreadsheet of metrics (area, percentage area based on a selected label's area, minimum distance to a particular label type) and clears viewer ready for next image in one click
  • Option to read in image metadata from an excel spreadsheet so can add experimental information to the metrics output file.

I've made these changes to the plugin after feedback from my lab group who wanted a better workflow for annotating slices of 3D images with multiple label layers. We're now using it routinely in the lab and I think that these improvements will likely also be useful to other users.

I've made a lot of changes and some of my commits are not very piecemeal so am very happy to respond to feedback on this!

thanushipeiris and others added 23 commits November 13, 2023 21:33
…memory, switches labels output layer automatically on clicking it, generates labels layers when clicking Load Model
Multilayer annotation, save labels and generate metrics
Remove automatic add annotation after load model
…ny annotations, deleted redundant measure_2D function
@thanushipeiris thanushipeiris force-pushed the multilabel-save-metrics branch from aabccf9 to bd95d93 Compare February 18, 2024 07:39
@Karol-G
Copy link
Collaborator

Karol-G commented Feb 19, 2024

Hey @thanushipeiris,

Thank you for your extensive work. The added features appear to be quite substantial! I am currently in a crunch time phase and won't be able to review this PR for a couple of weeks, as other projects have a higher priority right now. I will definitely take a look at it though and will set a reminder so I don't forget. I hope this is okay with you :)

Best regards,
Karol

@Karol-G Karol-G self-assigned this Feb 19, 2024
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