itk-vtk-viewer
itk-vtk-viewer copied to clipboard
Viewer crash on empty channel
To reproduce this issue, open an image with one empty channel (e.g. all 0), select the channel number in the UI, it will complain the following error in the console:
itkVtkViewerCDN.js:1 attempt to set zero width color range
b @ itkVtkViewerCDN.js:1
After this, we won't be able to change the contrast for other non-empty channels.
@oeway thanks for the report.