I have two images, one with and other without alpha channel. Thus, image A
and B
has a shape of (x,y,4) and (x,y,3) respectively.
I want to merge both images in a single tensor using python
, where B
is the background and A
is the upper image. The final image must have a shape of (x, y, 3). I tried if scikit-image or cv2 is capable of doing this, but I couldn't found any solution.