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

1 次查看(过去 30 天)
How i get x y values of start point and end point of a white curve from image image is added .... plz help me...

采纳的回答

KSSV
KSSV 2017-8-28
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by