how to find centre of mass in each grid

1 visualización (últimos 30 días)
Raghu Rao
Raghu Rao el 11 de Mzo. de 2017
Editada: Raghu Rao el 12 de Mzo. de 2017
help me to find centre of mass in each grid in a image

Respuestas (1)

Image Analyst
Image Analyst el 11 de Mzo. de 2017
Extract each grid into a small subimage, then sum up the x and y
[rows, columns] = find(~subImage);
meanRow = mean(rows);
meanColumn = mean(columns);
  4 comentarios
Raghu Rao
Raghu Rao el 12 de Mzo. de 2017
thank you image Analyst,
Raghu Rao
Raghu Rao el 12 de Mzo. de 2017
Editada: Raghu Rao el 12 de Mzo. de 2017
  • after editing my code am not getting proper results i want to point center of mass in each grid on image.but am not getting the results. please help me.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by