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