اللي بيعرف يشتغل على الماتلاب يساعدني بليز

i have an image which has a picture of a ball in it
and i want to find the centroid of that ball … i cant write a good code in matlab (m file) for it … if there any one can help me to write it plz i need ur help … :’(

الاسئلة فى قسم الماتلاب تكون عن مشكلة تواجهها اثناء البرمجة وليس طلب حل لاسئلة من البداية