mobie / mobie-viewer-fiji

BSD 2-Clause "Simplified" License
30 stars 12 forks source link

Weird behaviour of contrast limits #370

Open constantinpape opened 3 years ago

constantinpape commented 3 years ago

I don't understand how the contrast limits are working now, but they don't load contrast limits from a view as expected:

For example, the default view for the open organelle test dataset looks like this: Screenshot from 2021-07-22 14-42-47

There are two values for min / max each and it looks like the one above the slider is the one being applied. But these are NOT the values from the view: https://github.com/mobie/open-organelle-test/blob/master/data/jrc_hela-2/dataset.json#L31-L34 And thus the contrast limits are white and the rendering is incorrect.

Instead it should look like this: Screenshot from 2021-07-22 14-47-52

tischi commented 3 years ago

You are missing one order of magnitude in the JSON:

https://github.com/mobie/open-organelle-test/blob/f1f0a84097ff521b2832e742572615bf626dc5a1/data/jrc_hela-2/dataset.json#L32

Should be: 28490, 60120

constantinpape commented 3 years ago

Should be: 28490, 60120

No, that's not what I want, see screenshot below.

Also, apart from what the correct values are in the json, why are there two values per slider? This makes it very unclear as a user which one is the actual value.

Screenshot from 2021-07-22 15-38-19

(Edit: Sorry posted wrong screenshot first, this is the correct one now.)

tischi commented 3 years ago

I don't have this on my Mac:

image

Maybe this is a Linux thing?

@K-Meech how does this look like on Windows?

constantinpape commented 3 years ago

Ok, @tischi and me had a short zoom and we realized that this is an issue for all sliders (e.g. also in opacity) in Linux (at least my Ubuntu 20) now. The number above the slider counts from 0 (left) to 10.000 (right).

K-Meech commented 3 years ago

Screenshot (332) The default view looks fine on windows, and there are no extra numbers above the sliders. So seems linux specific!

tischi commented 3 years ago

Dear @tpietzsch @bogovicj,

I am using the SliderPanelDouble from bdv-core to create UI elements. On Ubuntu we observe some mysterious additional numbers displayed just above the sliders. Do you have an idea what that could be due to?

Ubuntu (wrong display of additional numbers on top of sliders)

image

Mac

image

Windows

image