tomviz icon indicating copy to clipboard operation
tomviz copied to clipboard

"Linear Green" color map is not saving to state file properly

Open psavery opened this issue 4 years ago • 4 comments

If you load up the tilt series example, and change the color map preset to "Linear Green", it appears like this: before_state_save

If you then save it to a state file and load it into tomviz, it appears like this: after_state_save

It appears there are some blue and brown colors in between 40 and 50. I'm not sure where they come from.

This might be a problem for other color maps also, but I only tested this one.

psavery avatar Mar 10 '20 17:03 psavery

I think we have seem something like this before? @cryos?

cjh1 avatar Mar 10 '20 17:03 cjh1

We have, I think green uses a different colorspace, but I thought we had fixed that ages ago. Maybe something crept back in, or was lost.

cryos avatar Mar 10 '20 17:03 cryos

Issue #1367 discusses the issue, and it looks pretty similar. Are we missing the colorspace in the state file, or not passing it?

cryos avatar Mar 10 '20 17:03 cryos

Looks like the "colorSpace" in the state file is CIELAB.

psavery avatar Mar 10 '20 18:03 psavery