How to take circular ROI

2 visualizaciones (últimos 30 días)
Parag
Parag el 11 de Nov. de 2016
Respondida: Tim Jackman el 21 de Sept. de 2018
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,

Respuestas (2)

Image Analyst
Image Analyst el 11 de Nov. de 2016
Editada: Image Analyst el 11 de Nov. de 2016
Simply threshold
Mask = grayImage > someThresholdValue;
  1 comentario
D.J.
D.J. el 25 de Jul. de 2018
How is this an answer?

Iniciar sesión para comentar.


Tim Jackman
Tim Jackman el 21 de Sept. de 2018
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