Skip to content

Undo interaction result #24

@cnicolasgr

Description

@cnicolasgr

This is some great work, thanks for sharing this!

​I've been looking at the code and noticed there isn't a direct way to undo the last interaction. Currently, correcting a segmentation seems to require either adding a negative interaction or completely resetting everything.

​There are definitely use cases where a user might want to undo their last action while keeping the previous segmentation results. A possible workaround would be to call add_initial_seg_interaction with the previous segmented image, but that still results in the loss of the interaction tensor.

Do you think it would be worthwhile to add an undo feature? Perhaps multiplying the interaction vector by the inverse of the decay coefficient and using the previous segmentation in the input tensor could work?

​I'm also curious about the decay mechanism. It only seems to apply to the same interaction type. Is there a specific reason it's not applied across all interaction types?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions