OpenCV 对np.uint32的图像进行可视化,失败

OpenCV 对np.uint32的图像进行可视化,失败

Overload resolution failed:

  • mat data type = 8 is not supported

image-20221109132728931

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()
posted @ 2022-11-10 09:46  bH1pJ  阅读(66)  评论(0编辑  收藏  举报