removing connected component

How can I remove a connected component from an image of particular length?
Actually I am processing some images in which there is a connected component in the form of an arc, which starts with the start of image top and ends where image ends. its length is equal to or greater than the image height.
please help me in doing this

2 comentarios

Chandra Kurniawan
Chandra Kurniawan el 10 de Mzo. de 2012
Would you show me the image?
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
md mizan chowdhury
md mizan chowdhury el 13 de Sept. de 2017
how can i remove all connected component from an image

Iniciar sesión para comentar.

Respuestas (3)

Image Analyst
Image Analyst el 10 de Mzo. de 2012

0 votos

You can use ismember(), as shown in my BlobsDemo image segmentation tutorial: http://www.mathworks.com/matlabcentral/fileexchange/25157 First identify the index of the blob you want to eliminate. It can be based on its area, shape, perimeter, MajorAxisLength, or whatever. Then use ismember to get a labeled image without that particular blob.
md mizan chowdhury
md mizan chowdhury el 14 de Sept. de 2017

0 votos

how can i remove all connected components

3 comentarios

Image Analyst
Image Analyst el 14 de Sept. de 2017
Easy. Simply set everything to zero
labeledImage(:) = 0;
Now all components are gone. But what good is this to you?
md mizan chowdhury
md mizan chowdhury el 18 de Sept. de 2017
plz give me the whole code
Image Analyst
Image Analyst el 18 de Sept. de 2017
That was it. All connected components will be erased once you execute that code.

Iniciar sesión para comentar.

md mizan chowdhury
md mizan chowdhury el 18 de Sept. de 2017

0 votos

detect text from video.

1 comentario

Image Analyst
Image Analyst el 18 de Sept. de 2017
This is not an "Answer" for Khawaja. It does not address his original question at the top at all.

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Mzo. de 2012

Comentada:

el 18 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by