melonora / napari-cell-gater

A napari plugin for cell marker gating.
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Automatic contrast limits? #8

Closed josenimo closed 3 months ago

josenimo commented 3 months ago

Images when loaded, Napari automatically shows only min/max, this can be a problem with artefacts. Perhaps lets use an automatic contrast setter? 90% quantile as max value should evade most artefacts, but could also kill very good signal to noise stains.. I would rather let the users deal with it

melonora commented 3 months ago

You can also calculate based on some crops in grid pattern in the image, avoiding most artefacts.

josenimo commented 3 months ago

I think that makes sense, but still can be problematic. Have seen images were positive signal is less than 1% of area. and if max is hard to change, this will lead to user friction. Rather leave the full range.. However, if good range is too small, say 400 to 1000, this is very inconvenient to drag in 16bit 0-65535, Typing explicit ranges also possible. So nonissue in the end.

josenimo commented 3 months ago

For current purposes, I think Napari contrast limits will do.