Borrar filtros
Borrar filtros

finding moving direction of object?

5 visualizaciones (últimos 30 días)
Abo
Abo el 15 de Dic. de 2014
Comentada: Thorsten el 16 de Dic. de 2014
according to diagram, i have an object in time 't' with a special position and in 't+1' in which it moved to another position, how can I find the moving direction? these spot (blue and red) are an object in two binary images (time 't' and 't+1')

Respuesta aceptada

Thorsten
Thorsten el 15 de Dic. de 2014
If the object has position (x1, y2) at time t and (x2, y2) at time t+1, it moved in the direction (x2 - x1, y2 -y1).
  4 comentarios
Abo
Abo el 16 de Dic. de 2014
thank you for your answer. please let me know how can I draw this direction and how can I define this direction as positive or negative?
Thorsten
Thorsten el 16 de Dic. de 2014
In general you should start a new question if you have a new question. In this case I answer it anyway: Draw an arrow from P1 to P2, google it if you don't know how to draw arrows in Matlab; and the values you get could be positive or negative... That gives you some idea how to define a direction as positive or negative :-)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by