python opencv 分割像素通道

python opencv 分割像素通道

 

import cv2
import numpy as np

# Load the image
img = cv2.imread('path/to/image.jpg')

# Split the image into its channels
b, g, r = cv2.split(img)

  

 

#################

posted @ 2023-04-15 15:14  西北逍遥  阅读(16)  评论(0编辑  收藏  举报