I need to process a lot of images using Python. All these images have some transparent region (alpha channel) of different sizes.
I need to programmatically fill in RGB noise in the transparent region of those images, but keep the non-transparent region unchanged. This is an example of changing the images.
How to do this programmatically in Python?
In my opinion you need to:
Mat
that contains Gaussian noise (or what kind of noise you need to add in the images).Mat
into another one based on the alpha channel (used as mask)initial
and noise_mask
) to he initial
image (or the inital_noisy_background
)