Question: what is imfill command in matlab?
Answer: BW2 = imfill( BW , locations ) performs a flood-fill operation on background pixels of the input binary image BW , starting from the points specified in locations . ... In this syntax, a hole is a set of background pixels that cannot be reached by filling in the background from the edge of the image.