Hi we are beginner with opencv and we would like to obtain the code of the function imfill with opencv 2.2
In matlab, I used imfill (img2 = imfill(img,'holes')) to the image to fill the holes in a gray image and we don't know how to use her in opencv 2.2. Help us please.
First use the search button on this forum, which would lead you to this topic and which already supplies a solution to the problem. However I have the idea that this is the same person looking for a solution. I would like to stress that this is not a 'please give me the solution' - forum ... imfill is a complex function which is internally programmed in matlab. If you want the same result in openCV, i suggest reading the basics on how imfill works ... for example start with the paper.
Also if you are porting an application to openCV, stop using deprecated versions like opencv 2.2 but move to 2.4.8 which is the latest stable release.