difference image between two frames

NicoVB

Well-known member
Joined
Jan 2, 2002
Messages
160
Location
Belgium
How do you make a difference image between two frames...

i have one frame: an empty tennis court

another frame: a tennis court with a player


I want to get the difference ==> so the player should be visible alone now
in fact (all the pixels value from frame 2) - (all the pixels value from frame 1)

but how to do this??

thanks in advance
nico
 
I think youll have to go through the pixels checking. If you do this with pointers in C# it should be lightning fast. Check out the BitmapData class if you havent already.
 
hey dude,
im not too sure whether you can do this in VB/C#, but on my TI-89 graphing calculator you can:


if you can somehow "Xor" 2 bitmaps/images (Xor is like an And or an Or) maybe itll do it for you, but i highly doubt you can do this in .net

something like this:

playerstandingallaloneImage = tenniscourtImage Xor tenniscourtwithplayerImage

dont quote me on this(by the way if this method *does* work but it doesnt acheive theright results, try And or Or...

but dude im really not sure,
Pent
 
Back
Top