Page 1 of 1

plz help me in image processing in c

Posted: 2013-11-25T08:06:45-07:00
by zubeguri
i have written a code in matlab.... it goes like
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++ :? :? :?