how to find centre of mass in each grid
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
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);
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!