Now I am able to detect outer as well as inner edge using attached code. Now what I am trying to do is I want to draw a line passing though 2 extreme endpoints(ymax,ymin) of outer edge(refer "rdgedetected.jpg"). Is there any direct function to do so or I have to do it by scanning each pixel and using Index value(=1) of it?? I don't have any idea about using for loop to scan pixel values in matlab. Thanks in adv
y=imread('C:\Users\Sukhada\Desktop\2.jpg');
imshow(y);
gy=rgb2gray(y);
figure,imshow(gy);
et=edge(gy,'canny',.305);
figure,imshow(et);