Using PIL to fill empty image space with nearby colors (aka inpainting)

前端 未结 3 1544
一个人的身影
一个人的身影 2021-02-02 02:25

I create an image with PIL:

\"example

I need to fill in the empty space (depicted as black). I coul

3条回答
  •  误落风尘
    2021-02-02 02:46

    You can also create the mask with the function CreateImage(), for instance:

    inpaint_mask = cv.CreateImage(cv.GetSize(im), 8, 1)
    

提交回复
热议问题