add the mean gray value of image with python
i want to add the gray mean value of image y to image X but i get this error : imgr=X+mean ValueError: operands could not be broadcast together with shapes (299,299) (4,) img = cv2.imread("X.png") img = cv2.resize(img,(299, 299)) X = img[:,:,1] Y = cv2.imread("Y.png") mean = cv2.mean(Y) imgr = X + mean` cv2.imshow("AND", imgr)
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.