how to find centre of mass in each grid

1 次查看(过去 30 天)
help me to find centre of mass in each grid in a image

回答(1 个)

Image Analyst
Image Analyst 2017-3-11
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 个评论
Raghu Rao
Raghu Rao 2017-3-12
编辑:Raghu Rao 2017-3-12
  • 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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Modify Image Colors 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by