フィルターのクリア

How to filling the area bounded by the contour?

3 ビュー (過去 30 日間)
dian_pratama
dian_pratama 2015 年 3 月 4 日
コメント済み: dian_pratama 2015 年 3 月 4 日
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);

採用された回答

Image Analyst
Image Analyst 2015 年 3 月 4 日
編集済み: Image Analyst 2015 年 3 月 4 日
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 件のコメント
dian_pratama
dian_pratama 2015 年 3 月 4 日
It's work. you are very helpful. Thanks Sir ;)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by