How can I fill regions?

조회 수: 1 (최근 30일)
Tomas
Tomas 2012년 11월 2일
Hi, I used imfill to fill régions. In some cases imfill fill all the regions as a single region. How can I correct this?
I=imread('image.jpg');
edg = edge(I,'log',0);
I2=imfill(edg,'holes');
thanks

답변 (1개)

Image Analyst
Image Analyst 2012년 11월 3일
Your edge filter probably had some kind of edge artifact that made a line all the way around the edge of your image. You have to find out why that is and either prevent it or break that line.
  댓글 수: 4
Tomas
Tomas 2012년 11월 5일
Image Analyst
Image Analyst 2012년 11월 5일
It's not clear what a region is, but I can tell that using an edge detector will not get them. You may have to do it manually with imfreehand().

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by