fn.makeARGB() requires a levels argument why is not given. No backward compatibility.
In case of floats, if no levels argument is provided, the 'min,max' values should be determined automatically from the image.
In my case and image with integer values transitions to floats and raises the exception upon redrawing it.
Exception: levels argument is required for float input types
Traceback (most recent call last):
File "C:\XXX\lib\site-packages\pyqtgraph\graphicsItems\ImageItem.py", line 834, in paint
self.render()
File "C:\XXX\lib\site-packages\pyqtgraph\graphicsItems\ImageItem.py", line 561, in render
fn.makeARGB(image, lut=lut, levels=levels, output=self._processingBuffer)
File "C:\XXX\lib\site-packages\pyqtgraph\functions.py", line 1401, in makeARGB
raise Exception('levels argument is required for float input types')
Short description
fn.makeARGB()
requires a levels argument why is not given. No backward compatibility. In case of floats, if no levels argument is provided, the 'min,max' values should be determined automatically from the image. In my case and image with integer values transitions to floats and raises the exception upon redrawing it.Tested environment(s)