Ok ........ Atleast I am asking help on another issue.

Please help me to find an open cv command that will detect a closed area in a binary image and fill it with white....

i.e I want to detect a suspended particle within a square region.....so with cvcanny i can get the borders.. but if the border is an enclosed area, I want to fill the enclosed area .

Please Help..