dashed line imrect of imline
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ellen
le 29 Mar 2011
Modifié(e) : Spandan Tiwari
le 11 Oct 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.
Ellen
0 commentaires
Réponse acceptée
Spandan Tiwari
le 11 Oct 2013
Modifié(e) : Spandan Tiwari
le 11 Oct 2013
Something like this would help you make a dashed line using imline .
h = imline();
h1 = get(h,'Children');
set(h1(3),'LineStyle','--');
set(h1(4),'LineStyle','--');
0 commentaires
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!