plz help me in image processing in c

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Locked
zubeguri
Posts: 1
Joined: 2013-11-25T07:57:47-07:00
Authentication code: 6789

plz help me in image processing in c

Post 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++ :? :? :?

Locked