vtkImageLogic emits error when given a single input
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I received the following error when I tried to use the VTK_NOT operation of vtkImageLogic with a single input:
ERROR: In ~/VTK/Common/vtkSource.cxx, line 374 vtkImageLogic (0xaf9f0d0): At least 2 inputs are required but only 1 are specified. Skipping execution.
The documentation for this class states that it can receive 1 or 2 inputs, but looking in the TCL test file /Imaging/Testing/Tcl/TestAllLogic.tcl it apears that the single input condition was never tested. Looking at vtkImageMathematics as an example it appears that the constructor is missing the following line: this->NumberOfRequiredInputs = 1;
I did not find a fix for this bug in any VTK version doing a search in phpBugTracker for vtkImageLogic.