How can I overlap/merge two density plot (in attach) using Mathematica. One image is in red scale and the other is in green scale.
In theses two images the lowest value is white (background) and the highest values are represented by pure red [ RGB (255,0,0) ] and green [ RGB (0,255,0) ] scale.
How do I to overlap these two images such that intersections are a combination of red and green to give a yellow intensity [ RGB (255,255,0) ] dependent on the "red" and "green" values. In summary I need that resultant image had red, green and yellow colors.
I already tried these examples:
and the function Blend[{ Image1 , Image2 }]
, but I didn't get a good result.
This is the closest example that I get using Blend[{imag1,imag2}].
But this is not 100 % correct a time that if you combine two pure colors, pure red and green, I was expecting that the combination of these two pure colors result a image that had red, green and yellow colors, but not in the dark tone of these color.
ImageCompose[img, {img2, 0.5}]
is, I think, the way to go but it doesn't necessarily result in a "nice" scale of yellow colors. $\endgroup$ColorSeparate[]
you end up with only the blue channel having less than a full intensity (except where the black lines are). Do you know where you are expecting the images not to match up, or have an example of what the output should be like? $\endgroup$