It is the python equivalent:
imgray is a numpy array containing 1-channel image.
img2 = cv2.merge((imgray,imgray,imgray))
It is the python equivalent:
imgray is a numpy array containing 1-channel image.
img2 = cv2.merge((imgray,imgray,imgray))