Luca Piazza
2018-02-19 09:43:37 UTC
Hello everybody!
beginner here... ;)
I'm writing a little GUI in PYQT5 to display images and I'd like to add
this histogram function.
The problem arises when my images are almost or completely black.
In case of an image with all 0 pixels the histogram breaks my application
raising the following error:
File "C:\Program
application raising the following error:
File "C:\Program
I don't have the knowledge, unfortunately, to modify the widget myself.
Thanks!
Luca
ps... I will prepare a minimal example in few hours, but I preferred to
post this first
beginner here... ;)
I'm writing a little GUI in PYQT5 to display images and I'd like to add
this histogram function.
The problem arises when my images are almost or completely black.
In case of an image with all 0 pixels the histogram breaks my application
raising the following error:
File "C:\Program
Files\Python36\lib\site-packages\pyqtgraph\graphicsItems\ImageItem.py",
line 464, in getHistogram
bins = np.arange(mn, mx+1.01*step, step, dtype=np.int)
ValueError: arange: cannot compute length
In case of an image with very few counts the histogram breaks myline 464, in getHistogram
bins = np.arange(mn, mx+1.01*step, step, dtype=np.int)
ValueError: arange: cannot compute length
application raising the following error:
File "C:\Program
Files\Python36\lib\site-packages\numpy\lib\function_base.py", line 727, in
histogram
'`bins` must increase monotonically, when an array')
ValueError: `bins` must increase monotonically, when an array
Any idea for any solutions?histogram
'`bins` must increase monotonically, when an array')
ValueError: `bins` must increase monotonically, when an array
I don't have the knowledge, unfortunately, to modify the widget myself.
Thanks!
Luca
ps... I will prepare a minimal example in few hours, but I preferred to
post this first
--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9393c1b3-fbfc-4583-8374-b104c45606ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9393c1b3-fbfc-4583-8374-b104c45606ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.