imjoy-team / imjoy-cloud-annotation

Client for connecting to the ImJoy AI Engine for collaborative annotation in the cloud.
https://imjoy-team.github.io/imjoy-cloud-annotation/
MIT License
1 stars 2 forks source link

color choice during segmentation #8

Open tdefa opened 3 years ago

tdefa commented 3 years ago

if not manually set, the default color for segmentation is green. (so far so good)

1) if I click on export or upload the geojson, it does not contain the color if all the same nuclei have the same color.

2) if I do not set the color in the annotation.json all nuclei are green (so far so good). Then if I choose a new color for segmentation, all the former nuclei change color too. In the attach image for example, I choose to segment in blue instead of green and then all the initial annotations from annotation.json change colorfrom green to blue.

Capture du 2021-02-12 08-28-29

oeway commented 3 years ago

Hi @tdefa this is now fixed with an additional settings such as default_edge_color and default_face_color, see here: https://kaibu.org/docs/#/api?id=add_shapesshapes-options

So if a geojson file doesn't contain color information, the default_* setting will kick in, which won't change if you choose a different color to draw. You may want to add for example default_edge_color to your client_config of your task setting.