ROI of a ring area?

4 views (last 30 days)
xi on 18 Jan 2021
Commented: Matt J on 19 Jan 2021
How do I define an ROI of a ring area, i.e, a big cirle and small cirle inside, and I want to select the area in between.
Do I have to define two ROIs first and name ROI3 = ROI1 -ROI2?

Answers (1)

Matt J
Matt J on 19 Jan 2021
For example,
dsq=(x-400).^2 + (y(:)-300).^2;
ROI = (50^2<=dsq & dsq<=100^2 );
Matt J
Matt J on 19 Jan 2021
You will probably have to build that out of two separate ROIs.

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!