-
Notifications
You must be signed in to change notification settings - Fork 12
Add NGFF Labels #336
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
base: main
Are you sure you want to change the base?
Add NGFF Labels #336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be significant code duplication, largely copy-pasting Position/ImageArray. Is this necessary or just an LLM-generated proof-of-concept?
|
@ziw-liu Largely copy pasted for now just to test with. I plan consolidating the shared functionality in a following commit. |
|
@Soorya19Pradeep could you link one example annotation from the DynaCell datasets such that @srivarra can prototype turning it into this new format? @srivarra do you compute pyramid levels on the labels array yourself? How do you do that currently? When doing that you'd need to be careful not to create extra labels - the number of unique labels should be the same at all pyramid levels. If you are to simply block average an image with 0s and 1s you'd end up 0.5s at the border which wouldn't make sense. You could use the median instead of the mean to compute the lower pyramid levels - there may be proper / better algorithms to do that. |
|
@ieivanov, the human annotations are saved from Napari as a CSV. This information, combined with tracking information, creates the format we use with the embedding for that FOV. Do you need the raw version or the curated one? @srivarra, you can find such a raw files inside: |
Add NGFF-Compliant Labels Support for Positions/FOVs
Implements labels group support for NGFF Positions, see the OME-NGFF specification for more information.
Usage
Changes
LabelImageclass for multiscale label managementPositionwithcreate_label(),get_label(),labels()methods