MATLAB: How i get x y values of start point and end point of a white curve from image

cordinateslinevertixx y values

How i get x y values of start point and end point of a white curve from image image is added …. plz help me…

Best Answer

I = imread('5.png') ;
I = rgb2gray(I) ;
[y,x] = find(I) ;
figure
imshow(I)
hold on
plot(x,y,'.r')
plot(x(1),y(1),'*y')
plot(x(end),y(end),'*y')
Related Question