cv2学习01
import cv2
img = cv2.imread('test.jpg') #读取图像文件
b, g ,r =cv2.split(img) #读入通道顺序为b,g,r
merge = cv2.merge([b,g,r])
cv2.imshow('img',img)
cv2.imshow("blue", b)
cv2.imshow("green", g)
cv2.imshow("red", r)
cv2.imshow("merge", merge)
cv2.wa
原创
2021-04-10 20:29:50 ·
102 阅读 ·
0 评论