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');
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.
Play games and win prizes!Learn more