How will I get the returned position of imrect after the figure is close?

1 回表示 (過去 30 日間)
Loren Narciso
Loren Narciso 2013 年 12 月 28 日
コメント済み: Walter Roberson 2018 年 11 月 25 日
Hello, I am a beginner in matlab. I am creating an interactive gui for selection of roi for a certain image. I used the imrect function. After dragging and selecting which area is, I have to closed the figure to continue the process. I want to get the position of the rectangle after closing the figure.

採用された回答

Image Analyst
Image Analyst 2013 年 12 月 28 日
I don't think you can. You should have double-clicked inside the rectangle to get the coordinates in your code, then close the figure with the close() function if you wanted it closed.

その他の回答 (1 件)

Ka Mirul
Ka Mirul 2018 年 11 月 25 日
編集済み: Ka Mirul 2018 年 11 月 25 日
You can get imrect x,y position interactively, here
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 11 月 25 日
but unfortunately not after the figure has been closed .

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

Community Treasure Hunt

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

Start Hunting!

Translated by