MATLAB: How to fing COG

digital image processingimage processingMATLAB

Hi,
How to find the center of gravity of image along the x direction of the line?
Thanks in advance

Best Answer

It's just the usual formula, the sum(x .* intensity) / sum(intensity). It's like the intensity cancels out and you're left with the weighted x value.
Related Question