opencv imshow函数显示float64格式错误
在模拟高斯光斑的过程中,手动生成了下图所示的图像,使用cv2.imwrite()函数保存正常。然而在使用cv2.imshow()函数显示时却出现错误原因是使用高斯函数公式生成的图像,灰度值为float64格式,而cv2.imshow()不支持float64,会自动转换,参考opencv文档:imshow(winname, mat) -> None. The function may scale the image, depending on its depth:. - If the i
原创
2020-05-29 17:52:39 ·
1623 阅读 ·
1 评论