allen-cell-animated / volume-viewer

https://allen-cell-animated.github.io/volume-viewer/
Other
92 stars 7 forks source link

if channel only has one single intensity, then div by zero occurs #200

Open toloudis opened 6 months ago

toloudis commented 6 months ago

Description

any volume that is a single scalar value causes div by zero during Lut remapDomains

Expected Behavior

This should be handled gracefully without exceptions. Possibly by forcing the range of values to be 1 but implementation tbd.

toloudis commented 6 months ago

TODO generate a test case for this...