White fabric texture picture and dark image synthesis, how to change the color of the cloth and retain the texture?

I use the method of positive overlay to synthesize two pictures, one is a white cloth picture, the other is a dark picture (take black as an example)
the principle of positive overlay is that multiplies the pixel values of the two colors and divides them by 255 , so all colors and black are overlapped, and the final result must be black. The darker the color, the lighter the texture of the resulting image

.

what method can be used to synthesize dark pictures and white pictures into while retains the texture of white fabric pictures?

as shown in the following figure

****


like this?

clipboard.png

Menu