Error: [VTK] Input port 0 of algorithm vtkImageMapToWindowLevelColors (000001A807D0A830) has 0 connections but is not optional. [VTK] Input port 0 of algorithm vtkImageThreshold (000001A86BF0BB60) has 0 connections but is not optional.

Hi,

I am using 3D slicer (Slicer version 5.4.0.) for improving the image quality in real-time by integrating .h5 model.
But I’m getting a lot of errors in the console.

[VTK] Input port 0 of algorithm vtkImageMapToWindowLevelColors (000001A807D0A830) has 0 connections but is not optional.
[VTK] Input port 0 of algorithm vtkImageThreshold (000001A86BF0BB60) has 0 connections but is not optional.

Has anybody encountered this error before?
I hope you can help me, Thank you in adavance!.

Probably in one of the slice views you selected to display an empty image.

1 Like

Hi, thank you for the reply!.

yes, you are absolutely right-- I can see the “No Image” text in one of the slice views, so it seems like an empty image is selected. I’m not sure how to fix this.

I trained a DL model to remove noise and then tried to integrate it into 3D Slicer (v5.4.0) as a scripted module (similar to SegmentationUNet). My goal is to perform denoising in real-time.

Is there something I should check in my code to avoid this?

Thanks a lot in advance for your help!