# ROI of a ring area?

5 ビュー (過去 30 日間)
xi 2021 年 1 月 18 日
コメント済み: Matt J 2021 年 1 月 19 日
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?

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

### 回答 (1 件)

Matt J 2021 年 1 月 19 日
For example,
[x,y]=deal(1:1000);
dsq=(x-400).^2 + (y(:)-300).^2;
ROI = (50^2<=dsq & dsq<=100^2 );
imshow(ROI)
##### 2 件のコメントなしを表示なしを非表示
xi 2021 年 1 月 19 日
Thanks for your reply. However, what I'm looking after is an interactive ROI definition and managment tool. Users can create an ROI object by drawing ROI on top of an image using the 'freehand', 'polygon','circular', 'rectangle'... What's common is that, they all define a sets of edge points and close up to form an enclosed region, but what if I want to define a ring shape ROI object? Not necessarily two circles, can be any shape of a connected region with a hollow area in the middle.
Matt J 2021 年 1 月 19 日
You will probably have to build that out of two separate ROIs.

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

### カテゴリ

Help Center および File ExchangeROI-Based Processing についてさらに検索

### Community Treasure Hunt

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

Start Hunting!

Translated by