2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > 【python】将单通道图像转换为3通道图像

【python】将单通道图像转换为3通道图像

时间:2020-01-30 22:30:43

相关推荐

【python】将单通道图像转换为3通道图像

#single channel image# shape of img is [x, y]# repeat as three channels# shape of img_3channel is [x, y, 3]img_3channel = np.repeat(img[..., np.newaxis], 3, 2)

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。