How to get the boundary points?

5 visualizaciones (últimos 30 días)
Chathu
Chathu el 2 de Mayo de 2016
Comentada: Chathu el 4 de Mayo de 2016
I have a mask(mask is for an image) which is saved in .mat format. Now, i want to take the boundary of this mask. Is it possible to convert from mask to boundary? Can anyone kindly guide me?

Respuesta aceptada

Image Analyst
Image Analyst el 2 de Mayo de 2016
Yes. Use bwboundaries() to get a list of (x,y) coorindates. Use bwperim() if you want an image of the outer boundary.
  13 comentarios
Image Analyst
Image Analyst el 4 de Mayo de 2016
Well you just have to figure out what the variable names were when they were saved, and then get back those same names, and make sure you're using the right one in the right place. It's just bookkeeping really. I mean, if the name is maskedRgbImage, it's probably an RGB image and don't use it where a gray scale image or binary (logical) image is expected.
Chathu
Chathu el 4 de Mayo de 2016
Thank you so much Image Analyst. Really appreciate your response.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by