Borrar filtros
Borrar filtros

get the inner white circle

1 visualización (últimos 30 días)
Elysi Cochin
Elysi Cochin el 1 de Feb. de 2016
Comentada: Walter Roberson el 1 de Feb. de 2016
i wanted to get the inner white circle and blacken all the remaining portions....
please can someone help me solve this...
i am trying to get such an image.... but not getting... please help...

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Feb. de 2016
regionprops() 'BoundingBox' would give you the bounding box without any problems. You could also request the 'Eccentricity' and use that to choose between the two output regions. You might also want the 'Image' property.
  2 comentarios
Elysi Cochin
Elysi Cochin el 1 de Feb. de 2016
sir i used regionpropos i'm getting the outer circle... i needed the inner circle....
Walter Roberson
Walter Roberson el 1 de Feb. de 2016
regionprops() is going to give you a structure array of length 2. You can examine the properties returned to decide which of the two each one refers to.
If you have a newer version of MATLAB, R2014b or later, you can use bwareafilt() and ask to keep the 1 'smallest'

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Denoising and Compression en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by