How to filling the area bounded by the contour?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
dian_pratama
el 4 de Mzo. de 2015
Comentada: dian_pratama
el 4 de Mzo. de 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);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147467/image.jpeg)
0 comentarios
Respuesta aceptada
Image Analyst
el 4 de Mzo. de 2015
Editada: Image Analyst
el 4 de Mzo. de 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)).
Más respuestas (0)
Ver también
Categorías
Más información sobre Contour Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!