Python Matplotlib рисует изображение без фона поверх другого изображения на рисунке.Python

Программы на Python
Anonymous
Python Matplotlib рисует изображение без фона поверх другого изображения на рисунке.

Сообщение Anonymous »


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

Вернуться в «Python»