Forums > Jitter

How to create an alpha mask from the difference between 2 sources?

January 15, 2010 | 1:42 am

If I have a picture of a room with a plant coming from one input, and a picture of just the room coming in the other, how would I subtract out the room to just show the plant?

In other words, how do I show the difference between 2 inputs?

I’ve tried jit.op to subtract one matrix from the other, which works to some degree, but when colors are similar to each other, they get subtracted out to almost nothing. In the perfect solution, I would subtract one matrix from the other, and if the result is over some threshold, show the full opacity of the original image (with the plant).


January 15, 2010 | 7:06 pm

hi. try searching the forum for "frame difference" and you will get lots of hits.

if you can’t figure it out, please post a simplified version of your patch, demonstrating what you are trying to achieve.


Viewing 2 posts - 1 through 2 (of 2 total)