从float64(x)范围[0,1]到uint8(y)范围[0,255]的转换
float64(x)
uint8(y)
y = (x*255).astype(np.uint8))
posted on 2021-04-07 20:48 cltt 阅读(796) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2025 cltt Powered by .NET 9.0 on Kubernetes