ExInpaint

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(ExInpaint: add documentation)
 
(add asd's x86/x64 version)
Line 1: Line 1:
{{FilterCat4|External_filters|Scripts|Restoration_filters|Logo_Removal}}
+
{{FilterCat5|External_filters|Plugins|Plugins_x64|Restoration_filters|Logo_Removal}}
 
{{Filter3
 
{{Filter3
|{{Author/Fizick}}
+
|1={{Author/Fizick}}
|v0.2.0.0
+
|2=v0.2.0.0
|[http://avisynth.org.ru/exinpaint/exinpaint0200.zip exinpaint0200.zip]
+
|3=[https://www.dropbox.com/s/b30w2px8ow3ylql/ExInpaint_x86_x64.7z?dl=1 ExInpaint_x86_x64.7z]
|Logo removal
+
|4=Logo removal
 +
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
|6=[http://forum.doom9.org/showthread.php?t=133773 Doom9 Forum]
 
|6=[http://forum.doom9.org/showthread.php?t=133773 Doom9 Forum]
|}}
+
}}
  
 
== Description ==
 
== Description ==
Line 17: Line 18:
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater]
+
* [x86]: [[AviSynth+]] or [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
* [[AviSynth+]]
+
* [x64]: [[AviSynth+]]
 
* Supported color formats: [[RGB32]], [[RGB24]], [[YUY2]], [[YV12]]
 
* Supported color formats: [[RGB32]], [[RGB24]], [[YUY2]], [[YV12]]
 
<br>
 
<br>
Line 56: Line 57:
 
<br>
 
<br>
 
== External Links ==
 
== External Links ==
*[http://avisynth.org.ru/exinpaint/exinpaint.html Doom9 Forum] - Official documentation.  
+
*[http://avisynth.org.ru/exinpaint/exinpaint.html avisynth.org.ru] - Official documentation.  
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Logo_Removal|External Filters]] &larr;'''
 
'''Back to [[External_filters#Logo_Removal|External Filters]] &larr;'''

Revision as of 17:11, 1 April 2020

Abstract
Author Fizick
Version v0.2.0.0
Download ExInpaint_x86_x64.7z
Category Logo removal
License GPLv2
Discussion Doom9 Forum

Contents

Description

Exemplar-Based Image Inpainting - removing large objects from images.

Selected objects has been replaced by a visually plausible background that mimics the appearance of the source region. Unlike other inpainting tools (logo removers), this filter does not blur image "holes". It tries to replace holes by similar texture elements (patches, exemplars, blocks) from frame image area, taking into account the image special points (with estimated confidence and priority). Block inpainting is started at hole border and propagates to its internal area, with isophote as a direction.

Algorithm is based on article: Object Removal by Exemplar-Based Inpainting. A. Criminisi, P. Perez, K. Toyama. In Proc. Conf. Comp. Vision Pattern Rec., Madison, WI, Jun 2003.

Requirements


Syntax and Parameters

ExInpaint (clip, clip "mask", int "color", int "dilate" int "xsize", int "ysize", int "radius", int "steps")


clip   =
Input clip. If mask clip is omitted and source clip is RGB32 then its alpha channel is used as a mask with threshold = 127 (all pixels with correspondent alpha 128-255 will be inpainted).
In other cases, the mask is taken from mask clip and processed differently.


clip  mask =
Clip with mask. Must be same format and size as source clip.


int  color = $FFFFFF
color of mask in mask clip (if used). Pixels with this color ONLY will be considered as a mask. (default = $FFFFFF as pure white for RGB). Note: for YUV color space the color value is in YUV (like color_yuv in ColorYUV filter).


int  dilate = 0
(Experimental) flags of mask dilation.
  • 0 : do not dilate (default)
  • 1 : horizontal dilate,
  • 2 : vertical dilate
  • 3 : all directions dilate


int  xsize = 8
int  ysize = 8
Horizontal and vertical patch (block) size to search and inpaint. Patch should be slightly larger than the largest distinguishable texture element.


int  radius = 0
Search radius for similar block. Should be greater than doubled patch size and greater than maximal hole radius. The greater, the slower. Set to 0 for auto-estimated value (default).


int  steps = 100000
Limit number of inpainting steps for debug (default=100000, almost not limited).


Example

TODO

External Links




Back to External Filters

Personal tools