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

Label colors and label interpolator #1

Open
kephale opened this issue Feb 2, 2024 · 4 comments
Open

Label colors and label interpolator #1

kephale opened this issue Feb 2, 2024 · 4 comments

Comments

@kephale
Copy link
Member

kephale commented Feb 2, 2024

@uermel suggested:

  • change label colors so they are more distinct and better suited for cryoEM data
  • use Lorenzo's label interpolator
@kephale
Copy link
Member Author

kephale commented Feb 5, 2024

Label colors were implemented in 884bfe7

@kephale
Copy link
Member Author

kephale commented Feb 8, 2024

@uermel I'm up for using https://github.com/brisvag/napari-label-interpolator but it isn't 100% clear to me how it would be used. I can imagine using the interpolator to paint additional pixels between some existing painted regions of the same label, is that what you were thinking about (e.g. paint the top, middle, and bottom of a ribosome, then fill in the rest)? It looks like we might need to paint per-instance to get this to work as intended.

@uermel
Copy link
Collaborator

uermel commented Feb 8, 2024

Yes, that's what I meant, but mainly for the membrane case. It's more tedious to trace long sections of membrane on each slice than to pick particles with the 3D sphere paint tool.

@kephale
Copy link
Member Author

kephale commented Mar 4, 2024

@uermel also wanted to change individual colors. There is a related napari zulip thread that is active right now: https://napari.zulipchat.com/#narrow/stream/212875-general/topic/Changing.20a.20single.20label.20color.20in.20a.20.60DirectLabelColormap.60

LorenzLamm added a commit to LorenzLamm/cellcanvas that referenced this issue Mar 6, 2024
* Add monkey patching fill function

* overwrite fill function of labels layer

* Tests for paintable features for paint and fill

* test for concrete values after painting

* update docstring

---------

Co-authored-by: Lorenz Lamm <Lorenz.Lamm@helmholtz-muenchen.de>
kevinyamauchi added a commit that referenced this issue Mar 7, 2024
* add lockable labels

* remove unused code

* add pycharm files to gitignore

* update docstring

* Segmentmanager fill with paintable features (#1)

* Add monkey patching fill function

* overwrite fill function of labels layer

* Tests for paintable features for paint and fill

* test for concrete values after painting

* update docstring

---------

Co-authored-by: Lorenz Lamm <Lorenz.Lamm@helmholtz-muenchen.de>

* add method stubs

* add mouse click selection

* fix imports

* add label selection

* create instance module

* add viewer to tests

* add widgets

---------

Co-authored-by: LorenzLamm <34575029+LorenzLamm@users.noreply.github.com>
Co-authored-by: Lorenz Lamm <Lorenz.Lamm@helmholtz-muenchen.de>
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

No branches or pull requests

2 participants