Selecting multiple regions of interest with roipoly

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 Kommentar

Did you ever find the code to do this? I have the same exact problem and can't find anything on the internet.

Melden Sie sich an, um zu kommentieren.

Antworten (4)

Image Analyst
Image Analyst am 15 Apr. 2018
Bearbeitet: Image Analyst am 10 Jan. 2019

7 Stimmen

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 Kommentare

Even though I wasn't the one who posted the question, thank you so much!!!!! It's working perfectly!
Excellent demo, thanks!

Melden Sie sich an, um zu kommentieren.

Image Analyst
Image Analyst am 14 Apr. 2018

1 Stimme

You have to create multiple mask and OR them together.

Produkte

Gefragt:

am 20 Jun. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by