Borrar filtros
Borrar filtros

Trace boundaries of objects in NOT binary images

2 visualizaciones (últimos 30 días)
Silvia
Silvia el 31 de Oct. de 2013
Comentada: Ankit Sahay el 4 de Sept. de 2020
Hello,
I'd need some help. I need to trace region boundaries in an image. I would need exactly what bwboundaries does but in multi-label images because my image is not binary.
I have a lot of objects, holes, objects inside other objects ... I have to detect all the objects and get its boundaries. I have found only bwboundaries but i couln't find anything for not binary images.
Thank you very much

Respuesta aceptada

Image Analyst
Image Analyst el 31 de Oct. de 2013
You can binarize the image and then call it
binaryImage = labeledImage > 0
If the objects are touching and still labeled (which you must have done with a custom algorithm) then you will need multiple binary images:
binaryImage = labeledImage == labelNumberThatYouWant;
do it for every label number that you want the boundary of.
  5 comentarios
Image Analyst
Image Analyst el 3 de Sept. de 2020
I have no idea what you want - no idea what "deal with" means to you. Start a new question and attach your image(s).
Ankit Sahay
Ankit Sahay el 4 de Sept. de 2020
Okay. Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Feature Detection and Extraction 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