Azzera filtri
Azzera filtri

dashed line imrect of imline

2 visualizzazioni (ultimi 30 giorni)
Ellen il 29 Mar 2011
Modificato: Spandan Tiwari il 11 Ott 2013
Hi everyone,
I'm trying to make a rectangle to define a region of interest in an image. I used the imrect function in Matlab. Now I want to make a dashed line of the top, bottom and right line of this rectangle, the left one should still be continuous. I wanted to do this with imline, but I don't know how to make this line dashed. I can't use the line function, because the rectangle has to be draggable and reseizable.
I hope someone can help me with this problem.
Thanks in advance.

Risposta accettata

Spandan Tiwari
Spandan Tiwari il 11 Ott 2013
Modificato: Spandan Tiwari il 11 Ott 2013
Something like this would help you make a dashed line using imline .
h = imline();
h1 = get(h,'Children');

Più risposte (2)

Ellen il 31 Mar 2011
Can't anyone help me? I have a deadline today, and it would be very nice if this is in the programm.

Joseph McKinney
Joseph McKinney il 10 Ott 2013
try imline


Scopri di più su Environment and Settings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by