maktu6 / PyPatchMatch

a Cython wrapper of inpainting technique based on PatchMatch
MIT License
9 stars 3 forks source link
inpainting patchmatch

PyPatchMatch

PyPatchMatch is a Cython wrapper of inpainting technique based on PatchMatch for restoring the miss area in an image.
The porject mainly based on a C implementation of PatchMatch and a cython wrapper of np.array <-> cv::Mat.

Prerequisites

Build

To build, run sh build.sh.

Use

PyPatchMatch_inpaint(input, mask, radius)

Args:

Return:

demo.ipynb is an example of inpainting images via PyPatchMatch.

Reference