Centroid Calculation Function

Calculates centroid of an object present in an image.

You are now following this Submission

Function takes a picture as an argument (suitably should contain only one object whose centroid is to be obtained) and returns the x and y coordinates of its centroid.

Cite As

Fahd Ahmad Abbasi (2026). Centroid Calculation Function (https://www.mathworks.com/matlabcentral/fileexchange/5457-centroid-calculation-function), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0