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

 채택된 답변

Spandan Tiwari
Spandan Tiwari 2013년 10월 11일
편집: Spandan Tiwari 2013년 10월 11일

1 개 추천

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','--');

추가 답변 (2개)

Ellen
Ellen 2011년 3월 31일

0 개 추천

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 2013년 10월 10일

0 개 추천

try imline

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

2011년 3월 29일

편집:

2013년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by