I am trying to combine multiple color channel images to single image. Like:
img1 = cv2.imread('This image is red channel image')
img1 = cv2.imread('This image is red channel image')
img1 = cv2.imread('This image is red channel image')
img1 = cv2.imread('This image is red channel image')
Now, I have researched online and I got 2 different answers, First way:
finalImage = np.stack((img1, img2, img3, img4), axis=-1)
Other way I searched and I got is:
finalImage = img1/4 + img2/4 + img3/4 + img4/4
Which one is the right way ? Thanks in advance.