Is there a function similar to rbbox that draws a line from corner to corner?

1 回表示 (過去 30 日間)
AJ
AJ 2014 年 10 月 21 日
コメント済み: AJ 2014 年 10 月 21 日
I am currently using rbbox to select a point on the axis and draw a ray to some other point. The rbbox draws the outline of the rectangle as I drag the mouse cursor around. When rbbox is done, I draw the line from the starting corner to the ending corner. However, my goal is to make a line parallel to a feature on the axis (image) and I find that I cannot do this precisely being able to see only the rectangle outline. I'd really like rbbox to draw a line corner-to-corner as I drag the mouse cursor. Is there a function similar to rbbox that can help me with this? Or do I need to write my own "real-time" line drawer?

採用された回答

Image Analyst
Image Analyst 2014 年 10 月 21 日
How about imline() or improfile()?
  1 件のコメント
AJ
AJ 2014 年 10 月 21 日
"imline" class looks like it will do the job nicely, thank you. I do happen to have the Image Processing toolbox at my disposal, so this solution should work. It's funny how this "function" has no command line help, nor does it auto-complete. But the HTML doc is complete.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by