Selecting multiple regions of interest with roipoly

21 ビュー (過去 30 日間)
Aaron Smith
Aaron Smith 2017 年 6 月 20 日
回答済み: Amir Azadeh Ranjbar 2021 年 12 月 28 日
I intend on using roipoly to select regions of interest in a plot. My question is; is it possible to select multiple separate ROI on the same plot? I also intend on applying a mask to the roipoly so that i can apply the same ROI to multiple matrices without plotting them. Because a mask works by setting every point outside the ROI to 0 and inside to 1, does this mean that the actual values inside the ROI are overwritten? Thanks in advance to anyone with clarification on this
  1 件のコメント
Marco Beccarini
Marco Beccarini 2018 年 4 月 14 日
Did you ever find the code to do this? I have the same exact problem and can't find anything on the internet.

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

回答 (4 件)

Image Analyst
Image Analyst 2018 年 4 月 15 日
編集済み: Image Analyst 2019 年 1 月 10 日
I haven't heard back from you so it seems like you weren't able to do it. I'm attaching a demo for you.
  2 件のコメント
Marco Beccarini
Marco Beccarini 2018 年 4 月 17 日
Even though I wasn't the one who posted the question, thank you so much!!!!! It's working perfectly!
Paul Safier
Paul Safier 2019 年 3 月 27 日
Excellent demo, thanks!

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


Image Analyst
Image Analyst 2018 年 4 月 14 日
You have to create multiple mask and OR them together.

Ruggero G. Bettinardi
Ruggero G. Bettinardi 2019 年 1 月 10 日
Great, thanks a lot!

Amir Azadeh Ranjbar
Amir Azadeh Ranjbar 2021 年 12 月 28 日
thanks you Image Analyst

製品

Community Treasure Hunt

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

Start Hunting!

Translated by