Filter löschen
Filter löschen

how to find centre of mass in each grid

1 Ansicht (letzte 30 Tage)
Raghu Rao
Raghu Rao am 11 Mär. 2017
Bearbeitet: Raghu Rao am 12 Mär. 2017
help me to find centre of mass in each grid in a image

Antworten (1)

Image Analyst
Image Analyst am 11 Mär. 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 Kommentare
Raghu Rao
Raghu Rao am 12 Mär. 2017
thank you image Analyst,
Raghu Rao
Raghu Rao am 12 Mär. 2017
Bearbeitet: Raghu Rao am 12 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by