deha
deha

Reputation: 815

Show difference between pictures as vectors

I want to write in C# using some graphic library app that will show difference between two pictures as a map of vectors, which will show movement of points.

Something like this is implemented for matlab and is called PIVlab and as a example: difference between

enter image description here

and

enter image description here

is represented by first image in

enter image description here

I would be very happy to write something similiar in .NET using for instance AForge. Can you help?

Upvotes: 3

Views: 673

Answers (2)

user613326
user613326

Reputation: 2180

An interesting question, are the dots always in view ? Or is the image not that stable like camera noice.

Is the motion slow or fast > i mean is a pixel within reach between frames ?

Do the pixels move like in a single large group, for example tracking stars Or do the pixels move more like groups of clouds or birds in the air ? Or do the pixels move like flees each in various directions ? Might there be some general suspected movement (like camera driving?)

Could you update your question with such info in your original question.

Because that differs a lot, in most cases its about tracking a near neighbor one might write an outspiraling pixel check for each pixel (or just for easy programming from small rectangle to large rectangle That might not be fast dough its best for the flees example

Upvotes: 0

Ani
Ani

Reputation: 10896

What you want is to find the Optical flow. Look here for a C# + emguCV implementation of an optical flow tracker.

Upvotes: 1

Related Questions