How to take circular ROI

조회 수: 2 (최근 30일)
Parag
Parag 2016년 11월 11일
답변: Tim Jackman 2018년 9월 21일
Hi, I am trying to get a circular ROI within the image. For rectangular ROI we can use imrect and get the position/coordinate, so is there a similar function to take circular ROI ?. I tried with imellipse but the coordinate that the function return I am not able to crop using imcrop. I am attaching an image here with desire ROI please let me know your suggestions. Thank you,

답변 (2개)

Image Analyst
Image Analyst 2016년 11월 11일
편집: Image Analyst 2016년 11월 11일
Simply threshold
Mask = grayImage > someThresholdValue;
  댓글 수: 1
D.J.
D.J. 2018년 7월 25일
How is this an answer?

댓글을 달려면 로그인하십시오.


Tim Jackman
Tim Jackman 2018년 9월 21일
Starting in 18b, you can use drawcircle to create a circular ROI:
https://www.mathworks.com/help/images/ref/drawcircle.html
For more information about the new suite of ROI tools, please take a look at the following link:
https://www.mathworks.com/help/images/roi-based-processing.html

Community Treasure Hunt

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

Start Hunting!

Translated by