ROI of a ring area?
조회 수: 3 (최근 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!
