ignore background for segmentation of object

2 visualizaciones (últimos 30 días)
Ihiertje
Ihiertje el 2 de Oct. de 2017
Comentada: Selva Karna el 9 de Oct. de 2017
Hi
I have a schematic representation of my image (see attachment) which consists of background (black), an object (dark gray) and a star (light gray). I would like to segment the star from the object with the use of a chan vese segmentation (as no threshold is known). However, this segmentation only segments the object from the black background, as these values differ much more than the object and the star. Is there a way to ignore the background or to 'tell' the segmentation to only apply the segmentation on the gray object? The object is already masked, so the background is zero.
Thanks!
  2 comentarios
Corey Silva
Corey Silva el 6 de Oct. de 2017
I think you will find the "Color Thresholder" app can do this for you. You can also do it programmatically with our image segmentation functions that utilize a threshold. https://www.mathworks.com/help/images/image-segmentation.html?s_tid=srchtitle
Image Analyst
Image Analyst el 6 de Oct. de 2017
Did you try activecontour() yet?
bw = activecontour(A,mask,method) specifies the active contour method used for segmentation, either 'Chan-Vese' or 'edge'.
If so, post your code so we can fix it.

Iniciar sesión para comentar.

Respuestas (1)

Selva Karna
Selva Karna el 7 de Oct. de 2017
simply way:
1.apply threshold based
2. after apply Binary , you can use Binare selection use bwlabel, u can get background object so u can easily removed
  2 comentarios
Image Analyst
Image Analyst el 7 de Oct. de 2017
But you left out the code for the chan vese segmentation, which is the method he wanted to use.
Selva Karna
Selva Karna el 9 de Oct. de 2017
I dont know sir?

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by