Hey guys,(adsbygoogle = window.adsbygoogle || []).push({});

I need help. Say i take a picture of a dot in a frame followed by another picture whereby the dot has moved to another spot in the frame. How do I calculate the distance between these 2 dots? At the end, i would have 2 jpeg images of the dot at 2 different locations. What i'm trying to do is calculate how far the dot has moved. Any help with the codes would be very much appreciated. Thanks!!

Jeremy

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB code (calculating displacement)

**Physics Forums | Science Articles, Homework Help, Discussion**