- Use strel() to construct a disc structuring element
- Use imdilate() to dilate your binary image (circles mask) to enlarge the circles
- Use ringMask = xor(mask, dilatedMask) to get the annular mask.
- Use the annular mask to set the gray scale image to 0 there: grayImage(ringMask) = 0;
How to delete the area around a circle in an image?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Thomas Nell
el 25 de Nov. de 2018
Comentada: Thomas Nell
el 26 de Nov. de 2018
I have an image which has many circles in it, I've used viscircles to identify and draw a circle around the circles in the image. My next step is to delete the area around the circles, do you guys know how I could go about this???
Thank you so much
0 comentarios
Respuesta aceptada
Image Analyst
el 25 de Nov. de 2018
Yes. viscircles() does not find circles though - perhaps you meant imfindcircles().
I don't have your code so I can't extend it so I'll just give you the steps.
Attach your image and code to produce the circles if you can't do it.
Más respuestas (0)
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!