Skip to content

Updating API #3

Open
Open
@ianhi

Description

@ianhi

Now that we're moving this from mpl-interactions we have a good opportunity to update the API. Inspired by discussions from mpl-extensions/mpl-interactions#266 here are osme initial thoughts:

Image stacks

stack_segmenter = ImageSegmenter(image_stack)

stack_segmenter.mask # returns something with the same shape as image_stack

image overlay

ImageSegmenter([img1, img2], overlay_image_stack=True)

Multiple ROIs
with an implementation inspired by this: https://github.com/ianhi/mpl-point-clicker/blob/cf254d56a5ffe7ec2cc201f67d0d326f1006694e/mpl_point_clicker/_clicker.py#L50-L53

 ImageSegmenter(image_stack, rois = ['Tumor','Kidney','Vessel'])

# alternatively
 ImageSegmenter(image_stack, rois = 3)

attn: @wgottwald

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