Tracing an image displacement, noobie help!

Programming, for all ages and all languages.
Post Reply
Azimuth

Tracing an image displacement, noobie help!

Post by Azimuth »

Hello

Working on my westinghouse research project, a part of it requires me to be able to trace a change of location of an object.

For example: TWO photographs are inputed with a dark ball against light background. The program finds two object edges and calculates the displacement.

IT doesnt have to be very complex, no shape identification is required, only a point mass and its displacement.

Now, for my main question
I know Visual Basic moderately well. Very little C++ experience. Can u please point me in the correct direction, where do i start, is there a complete algorithm available somwhere?

Thank you very much
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Tracing an image displacement, noobie help!

Post by Candy »

1. Identify the points to track
2. Calculate the average location (add all together in both directions, divide both by total number of dots).
3. Repeat for other image(s)
4. Use information to calculate direction, speed etc.

The first step is unnecessary in computer graphics, since they should be flawless... With real photographs you are going to get those questions, such as a motion blurred image.
Post Reply