I create an image with PIL:
I need to fill in the empty space (depicted as black). I coul
You can also create the mask with the function CreateImage(), for instance:
CreateImage()
inpaint_mask = cv.CreateImage(cv.GetSize(im), 8, 1)