python opencv 分割像素通道

发布时间 2023-04-15 15:18:16作者: 西北逍遥

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)

  

 

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