How can I fill regions?

1 visualización (últimos 30 días)
Tomas
Tomas el 2 de Nov. de 2012
Hi, I used imfill to fill régions. In some cases imfill fill all the regions as a single region. How can I correct this?
I=imread('image.jpg');
edg = edge(I,'log',0);
I2=imfill(edg,'holes');
thanks

Respuestas (1)

Image Analyst
Image Analyst el 3 de Nov. de 2012
Your edge filter probably had some kind of edge artifact that made a line all the way around the edge of your image. You have to find out why that is and either prevent it or break that line.
  4 comentarios
Tomas
Tomas el 5 de Nov. de 2012
Image Analyst
Image Analyst el 5 de Nov. de 2012
It's not clear what a region is, but I can tell that using an edge detector will not get them. You may have to do it manually with imfreehand().

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by