필터 지우기
필터 지우기

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 CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by