i want to track the movement of the object that i detected using connected components.

1 visualización (últimos 30 días)
In the attached image, I was able to detect an object of my interest. As the image i attached is the first frame of a video file, i want to track the movement of the object throughout the whole video. what method can I use to track the object?.

Respuesta aceptada

Image Analyst
Image Analyst el 15 de Dic. de 2019
Just threshold it to get a binary image. Then you can use bwboundaries() to get the outline of it, or you can use regionprops() to get the centroid of it. You can store those in an array where each element of the array is the centroid or boundary for that frame.
For example see the attached example and see how I keep track of hte color means for all the frames.
  4 comentarios
Shabhrish Reddy Uddehal
Shabhrish Reddy Uddehal el 18 de Dic. de 2019
Hi Image Analyst,
Thank you for your suggestion. I tired the approach you mentioned above and since the frames with the fluid missing is alot. I have to somehow reduce the flickering first and then implelment.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by