I have 2 images,
imgRedOnly as below, which already have the same
I want to paste
imgBlackOnly to cover
imgRedOnly, while the white part of
imgBlackOnly is treated as "transparent" as what we did in the tiny software Paint of Windows. Thus my desired output is
imgBlackCoverRed as below:
But one point to note is, the white part of
imgBlackOnly is not totally white (since it is a screen capture from somewhere else), and therefore we need to force some "nearly white" part to be "totally white" by adding a manual threshold.
How can I do that? Many thanks!
To avoid misunderstanding, I also want to point out that the original picture of
imgBlackOnly is not just black. It has several colors, with a "nearly white" background. Thanks.