Python opencv 图片归一化转换到255

# 归一化一张图片:
aaa = curImgData[:,:,0]
norm_image = cv.normalize(aaa, None, alpha=0, beta=1, norm_type=cv.NORM_MINMAX, dtype=cv.CV_32F)
bbb = norm_image*255
ccc = bbb.astype(np.uint8)

真的服了。Python no  yyds

posted @ 2022-05-20 18:11  bH1pJ  阅读(303)  评论(0编辑  收藏  举报