Effacer les filtres
Effacer les filtres

How to filling the area bounded by the contour?

1 vue (au cours des 30 derniers jours)
dian_pratama
dian_pratama le 4 Mar 2015
Commenté : dian_pratama le 4 Mar 2015
How to filling the area bounded by the contour (brain tumor - red line)?
I use this code:
imshow (img);
hold on
edge = contour(GT, 'r' , 'Fill' , 'off' , 'linewidth' ,1);

Réponse acceptée

Image Analyst
Image Analyst le 4 Mar 2015
Modifié(e) : Image Analyst le 4 Mar 2015
Lots of ways, like measuring all blobs and looking for which have a circularity near 1. Or extract the 2 biggest blobs, then take the smallest of those two (see attached demo). Plus other ways depending on what assumptions you make.
See my Image Segmentation Tutorial in my File Exchange to see how to do filtering based on size. You could extend it to filter based on size and circularity (= perimeter^2/(4*pi*Area)).
  1 commentaire
dian_pratama
dian_pratama le 4 Mar 2015
It's work. you are very helpful. Thanks Sir ;)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by