Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
How i get x y values of start point and end point of a white curve from image image is added .... plz help me...

Respuesta aceptada

KSSV
KSSV el 28 de Ag. de 2017
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')
  2 comentarios
Sajid Rahim
Sajid Rahim el 28 de Ag. de 2017
Sir how i convert the 5.png image to like 555.png... i.e to draw 2 lines...... one frome start point and one line from end point.... plzz..

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by