"Ankur Verma" wrote in message <email@example.com>... > well.. I am not sure but try this one. Try to find edge in the given image, the resulting image will give a binary image with 1 at the edge (the green colored pixel) and 0 for everything else. then simple you can find the pixel value. for example: > > %% image.png is the given image% > a=im2bw(imread('image.png')); % Return a binary image > b=find(edge(a)==1); % Return 'b' having the absolute index of the boundary pixels in the given image%% > > Regards > Ankur Verma
Hi, thanks for answering. I have solved the problem: the pixels I want are the ones whose bwdist is 1!