我想使用 openCV 库在 Python 中将图像转换为float32图像uint8。我使用了以下代码,但我不知道它是否正确。
float32
uint8
这I是float32图像。
I
J = I*255 J = J.astype(np.uint8)
如果你能帮助我,我真的很感激。
python opencv image-processing
image-processing ×1
opencv ×1
python ×1