ROI of a ring area?
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!