how to find centre of mass in each grid
1 view (last 30 days)
Show older comments
Answers (1)
Image Analyst
on 11 Mar 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 Comments
See Also
Categories
Find more on Modify Image Colors in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!