{"id":19431093,"url":"https://github.com/zqpei/patchmatch_inpainting","last_synced_at":"2025-09-02T15:07:26.709Z","repository":{"id":109499436,"uuid":"201247894","full_name":"ZQPei/patchmatch_inpainting","owner":"ZQPei","description":"Implementation of PatchMatch for image inpainting in cpp","archived":false,"fork":false,"pushed_at":"2020-04-17T16:43:06.000Z","size":3615,"stargazers_count":49,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T18:51:19.883Z","etag":null,"topics":["exemplar-based-image-inpainting","inpainting","opencv3","patchmatch"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZQPei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-08T11:52:34.000Z","updated_at":"2025-02-24T06:05:25.000Z","dependencies_parsed_at":"2023-07-14T23:30:42.404Z","dependency_job_id":null,"html_url":"https://github.com/ZQPei/patchmatch_inpainting","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ZQPei/patchmatch_inpainting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpatchmatch_inpainting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpatchmatch_inpainting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpatchmatch_inpainting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpatchmatch_inpainting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZQPei","download_url":"https://codeload.github.com/ZQPei/patchmatch_inpainting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZQPei%2Fpatchmatch_inpainting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273301873,"owners_count":25081105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exemplar-based-image-inpainting","inpainting","opencv3","patchmatch"],"created_at":"2024-11-10T14:28:13.633Z","updated_at":"2025-09-02T15:07:26.704Z","avatar_url":"https://github.com/ZQPei.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PatchMatch for inpainting\n\n![](https://img.shields.io/badge/build-passing-green)  ![](https://img.shields.io/badge/opencv-3.x-green)  ![](https://img.shields.io/badge/cmake-%3E2.8-orange)  ![](https://img.shields.io/badge/Lisence-MIT-yellow)\n\n## Introduction\n\nThis repository borrows most of the code from [younesse-cv](https://github.com/younesse-cv/PatchMatch).  However that repository is C style, which cannot be compiled using `opencv 3.x`.  What I did is wrapping the code using `opencv 3.x` API in C++ style. Thanks [zvezdochiot](https://github.com/zvezdochiot) for suggestion.\n\n\n\n## Dependencies\n\n- cmake \u003e 2.8\n- opencv 3.x\n- g++-4.7\n\n\n\n## How to use\n\n- Download this repository\n\n  ```bash\n  git clone https://github.com/ZQPei/patchmatch_inpainting.git\n  ```\n\n- Compile\n\n  ```bash\n  mkdir build\n  cd build\n  cmake ..\n  make\n  cd ..\n  ```\n\n- Run  \n  As what does in `run.sh`.\n\n  ```bash\n  for i in 0 1 2; do\n    ./build/patchmatch image_files/inpainting/image/image_0000$i.png \\\n                       image_files/inpainting/mask/mask_0000$i.png \\\n                       image_files/inpainting/output/output_0000$i.png \\\n                       image_files/inpainting/metrics.log \\\n                       $i;\n  done\n  ```\n\n  Or simple:\n  ```sh\n    ./build/patchmatch image_files/forest/forest.bmp \\\n                       image_files/forest/forest_mask.png \\\n                       image_files/forest/forest_inpaint.png\n  ```\n\n\n## Demo\n\n| mask                                                  | masked image                                                 | inpainting image using PatchMatch                                                  | origin image                                                 |\n| ----------------------------------------------------- | ------------------------------------------------------------ | ----------------------------------------------------- | ------------------------------------------------------------ |\n| ![](./image_files/inpainting/mask/mask_00001.png)     | ![](./image_files/inpainting/masked_image/masked_image_00001.png) | ![](./image_files/inpainting/output/output_00001.png)     | ![](./image_files/inpainting/image/image_00001.png) |\n\n\n\n\n\n\n## References\n\nhttps://github.com/younesse-cv/PatchMatch\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzqpei%2Fpatchmatch_inpainting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzqpei%2Fpatchmatch_inpainting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzqpei%2Fpatchmatch_inpainting/lists"}