MATLAB: Finding the gravity of blob or amorphous form in picture

gravity center in picture

how can I obtain the exact center point of gravity in picture and in amorphous form?

Best Answer

Use regionprops() in the Image Processing Toolbox. Or just use the regular formula of the sum of the gray levels times the distance divided by the sum of the gray levels (do it in both x and y directions).
Related Question