MATLAB: Could anyone help me please

MATLAB

I wonder how can I create source code to find coordinate x,y of an eye ball of this picture, please?

Best Answer

I'd call bwconvhull() to get the convex hull of all those blobs together:
CH = bwconvhull(binaryImage, 'union');
Then find the centroid with regionprops
measurements = regionprops(CH, 'Centroid');
centroid = measurements.Centroid;