Selecting multiple regions of interest with roipoly

7 次查看(过去 30 天)
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.

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

Ruggero G. Bettinardi
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