Create impoly starting at specific point
3 ビュー (過去 30 日間)
古いコメントを表示
Hey there!
Is there a way to draw a polygon using impoly that starts at one previously defined point?
I can use impoly to create a polygon object that I create by clicking on an image and retrieve the coordinates like in the following example:
figure, imshow('gantrycrane.png'); h = impoly(gca,'closed',false); wait(h)
I can also pre-define a polygon and only change it interactively using
figure, imshow('gantrycrane.png'); h = impoly(gca,[10 10; 20 10],'closed',false); wait(h)
The problem with example one is that there is no starting point constraint. The problem with example two that it does not allow the extend the polygon by clicking (I know I could add vertices by pressing the 'a' key while the pointer is on the object). I like to draw a polygon like in example one by clicking on an image that starts at a given point like in exmaple two. I guess there must be a way to make the polygon 'active' again (like it is in example one) using its handle. Does anybody know if this is possible?
Thanks a lot! Erik
1 件のコメント
mohammad ibrahim
2019 年 4 月 23 日
Hello Eric
I have the same question, I would like to know if you ahve solved this issue ?
many thanks
Mike
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!