How can I draw a line on top of an imagesc?

28 visualizaciones (últimos 30 días)
H Swan
H Swan el 16 de Jun. de 2017
Respondida: Image Analyst el 16 de Jun. de 2017
When I issue a plot command, the previously drawn image disappears and is replaced by the line.

Respuesta aceptada

Image Analyst
Image Analyst el 16 de Jun. de 2017
Use hold on
imagesc(yourImage);
hold on;
line([x1,x2], [y1,y2], 'Color', 'r');

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by