How to find centroid of moving object in a video?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
BHAVIN JOISAR
el 3 de En. de 2020
Comentada: MD MOSTAKIM ALAM SOHAG
el 18 de En. de 2021
Hello, I am tryng to find velocity of a moving ball using Histogram tracking method, where I am able to track the ball successfully. Now I want to find the velocity of the moving ball, to do that first I have to find the centroids of the ball. So when I use function regionprops() it traces centroids of entire Frame, where as I only want to find the centroids of the ball which is been tracked. And after that I want to calculate the velocity of the same ball which is been tracked.
So how do I mark the centroid of only one object in entire frame?
2 comentarios
Respuesta aceptada
Image Analyst
el 4 de En. de 2020
Editada: Image Analyst
el 4 de En. de 2020
You need to segment your objects in the frame first. Then call regionprops() to get the centroid of each blob. If blobs enter or exit the scene, or overlap each other, then you'll have to have special code to handle those situations. See my Image Segmentation Tutorial and attached demo.
11 comentarios
Image Analyst
el 17 de En. de 2021
Save all the images to memory or disk, then use montage() or imtile().
Start your own question if you still have trouble, rather than here in BHAVIN's question where he'll continue to get emails about activity on his thread.
MD MOSTAKIM ALAM SOHAG
el 18 de En. de 2021
Dear sir, As i am new in matlab, could you provide me the full code. it will be vry help full for me .
Más respuestas (0)
Ver también
Categorías
Más información sobre Computer Vision Toolbox 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!


