想要从照片中移除某物(某人),因为它们从未存在于照片中?这是基于 .NET 的内容感知填充功能。它能智能地填充不需要的或缺失的内容。
想要从照片中移除某物(某人),因为它们从未存在于照片中?这是基于 .NET 的内容感知填充功能。它能智能地填充不需要的或缺失的内容。
.NET implementation of content-aware fill (also known as inpainting or image completion) in image processing domain.
Content aware fill is used to fill in unwanted or missing areas of photographs. See an example of such fill below where we don't want to have the man in blue t-shirt on our picture:
| Original image | Processed image |
|---|---|
![]() |
![]() |
docker run -p 5000:80 -it --rm zavolokas/inpainter:latestNavigate to http://localhost:5000
var inpainter = new Inpainter();
var result = inpainter.Inpaint(imageArgb, markupArgb, donors);
result
.FromArgbToBitmap()
.SaveTo(resultPath, ImageFormat.Png)
.ShowFile();The Inpainter takes as input
Note: the images are not GDI+ images but images in an internal format and can be obtained from GDI+
Bitmaps using extensions.
| Original | Markup | Process |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The execution of the algorithm can be customized by adjusting the settings.
The implementation is based on following publications:
暂无开放 Issues,或尚未同步最近议题。