OpenCV 对np.uint32的图像进行可视化,失败
OpenCV 对np.uint32的图像进行可视化,失败
Overload resolution failed:
- mat data type = 8 is not supported
enhancedPart = enhancedPart.astype(np.float32)
修改成np.float32时,要把图像的值归一化到0到1之间;
建议用这种方式对内存变量进行可视化,而不是OpenCV
import pyqtgraph.multiprocess as mp
proc = mp.QtProcess()
rpg = proc._import('pyqtgraph')
rpg.image(imageData.T)
rpg.imshow()