I have 2 images (the first is a single-band float32 image, the second is an RGB uint8 image, both images are the same size):


I want to place image 2 on top of image 1 in such a way that the black color in image 2 becomes transparent, and the red color, on the contrary, is displayed.
How can this be done via MatplotLib?
Источник: https://stackoverflow.com/questions/781 ... r-image-on