标签: python arrays python-3.x numpy image-processing
如何将这两个数组堆叠为(2,128,118)?
答案 0 :(得分:2)
import numpy as np import cv2 img1 = cv2.imread(...) img2 = cv2.imread(...) np.stack([img1,img2],axis=0)