I=imread('path');
c=~im2bw(i);
[x,y]=find(c==1);
a=median(x);
b=median(y);
d=plot(b,a,'r.');
imshow(d);
basic task is to take an image of a block with a small circle mark.... find the location of circle ([x,y] in code above)....find centre of circle (a, b in this code)....and place a red dot over there...
plz help me doing same in c or c++


