itk-vtk-viewer icon indicating copy to clipboard operation
itk-vtk-viewer copied to clipboard

Viewer crash on empty channel

Open oeway opened this issue 4 years ago • 1 comments

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 avatar Oct 28 '20 16:10 oeway

@oeway thanks for the report.

thewtex avatar Nov 03 '20 22:11 thewtex