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)
#################
QQ 3087438119
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)
#################