How do I add transparency to a uint16 image in python (in the context of using connectedcomponents in opencv)? – Photoshop
With a uint8, 3-channel image and uint8 binary mask, I have done the following in opencv and python in order to change an object on a black background into an object on a transparent background: # Separate image into its…