computational-cell-analytics / micro-sam

Segment Anything for Microscopy
https://computational-cell-analytics.github.io/micro-sam/
MIT License
324 stars 40 forks source link

edit committed objects #660

Open lufre1 opened 1 month ago

lufre1 commented 1 month ago

Description

When using the micro_sam annotator and committing segmented object, the segmentation is stored in another layer called "committed_objects". Once there, the segmentation cannot be edited again (despite deleting it entirely by pipetting background color and bucket fill the obejct to background within the "committed_obejcts" layer and then segmenting the object once again)

ToDo

Make the committed object "movable" so it can be moved between layers in order to edit it again in "current_object" layer. There needs to be a UI element allowing the user to move objects.

lufre1 commented 1 month ago

had a look at the api and docs for layers etc. and it seems that there is no napari inherent option we could use for something like that. means we need to implement something similar to the point prompt toggler: image

I think this does not contribute positively to the user experience as the UI elements are located in the annotator (right border) and not in the label layers (left border) where the moving happens. But it is possible to add a widget where the user can select which label id should be moved to which layer.