DeBarrel

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Examples)
m (Removed space between negative sign and actual number (Between - 0.5 to 0.5 -> Between -0.5 to 0.5))
 
(3 intermediate revisions by one user not shown)
Line 10: Line 10:
 
|6=<!-- discussion URL -->[https://forum.doom9.org/showthread.php?t=136083&highlight=DeBarrel Original DeBarrel plugin], [https://forum.doom9.org/showthread.php?t=174163 movePlus]
 
|6=<!-- discussion URL -->[https://forum.doom9.org/showthread.php?t=136083&highlight=DeBarrel Original DeBarrel plugin], [https://forum.doom9.org/showthread.php?t=174163 movePlus]
 
}}
 
}}
 +
 
<br>
 
<br>
 
 
== Description ==
 
== Description ==
 
<!-- a one-sentence description -->
 
<!-- a one-sentence description -->
Line 17: Line 17:
  
 
<br>
 
<br>
 
 
== Requirements ==
 
== Requirements ==
 
* AviSynth+ r2347 or later
 
* AviSynth+ r2347 or later
Line 26: Line 25:
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
::: Input clip.
+
::: Input clip
 
<br>
 
<br>
 
::{{Par2|a|float|0.005}}
 
::{{Par2|a|float|0.005}}
 
::: Coefficient a (xa in independent mode and start val in test mode)
 
::: Coefficient a (xa in independent mode and start val in test mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|b|float|0.005}}
 
::{{Par2|b|float|0.005}}
 
::: Coefficient b (xb in independent mode and start val in test mode)
 
::: Coefficient b (xb in independent mode and start val in test mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|c|float|0.005}}
 
::{{Par2|c|float|0.005}}
 
::: Coefficient c (xc in independent mode and start val in test mode)
 
::: Coefficient c (xc in independent mode and start val in test mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|pin|bool|false}}
 
::{{Par2|pin|bool|false}}
 
::: Whether to correct pin cushion or barrel type distortion
 
::: Whether to correct pin cushion or barrel type distortion
 
+
::::* true = pin
 
+
::::* false = barrel
::* true for pin
+
::* false for barrel
+
 
<br>
 
<br>
 
::{{Par2|vh|bool|1.0}}
 
::{{Par2|vh|bool|1.0}}
 
::: Vertical to horizontal distortion ratio
 
::: Vertical to horizontal distortion ratio
 
+
::::* Between 0.1 and 10
 
+
::* Between 0.1 and 10
+
 
<br>
 
<br>
 
::{{Par2|test|bool|false}}
 
::{{Par2|test|bool|false}}
 
::: Whether in test mode
 
::: Whether in test mode
 
+
::::* true = test
 
+
::::* false = normal
::* true for test
+
::* false for normal
+
 
<br>
 
<br>
 
::{{Par2|ea|float|0.05}}
 
::{{Par2|ea|float|0.05}}
 
::: End value of coefficient a in test mode (xea in independent mode)
 
::: End value of coefficient a in test mode (xea in independent mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|eb|float|0.05}}
 
::{{Par2|eb|float|0.05}}
 
::: End value of coefficient b in test mode (xeb in independent mode)
 
::: End value of coefficient b in test mode (xeb in independent mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|ec|float|0.05}}
 
::{{Par2|ec|float|0.05}}
 
::: End value of coefficient c in test mode (xec in independent mode)
 
::: End value of coefficient c in test mode (xec in independent mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|nsteps|int|20}}
 
::{{Par2|nsteps|int|20}}
 
::: Number of steps for variation (test mode only)
 
::: Number of steps for variation (test mode only)
 
+
::::* Between 0 and 100
 
+
::* Between 0 and 100
+
 
<br>
 
<br>
 
::{{Par2|frame|Int|0}}
 
::{{Par2|frame|Int|0}}
 
::: Input frame number for over lay (test mode only)
 
::: Input frame number for over lay (test mode only)
 
+
::::* Within input clip
 
+
::* Within input clip
+
 
<br>
 
<br>
 
::{{Par2|color|Int|0}}
 
::{{Par2|color|Int|0}}
 
::: Color of dots in test mode and left out borders in normal
 
::: Color of dots in test mode and left out borders in normal
 
+
::::* In RRGGBB format
 
+
::* In RRGGBB format
+
 
<br>
 
<br>
 
::{{Par2|ind|bool|false}}
 
::{{Par2|ind|bool|false}}
 
::: Whether x and y have independent coefficients
 
::: Whether x and y have independent coefficients
 
+
::::* true for independent
 
+
::::* false for pin cushion or barrel
::* true for independent
+
::* false for pin cushion or barrel
+
 
<br>
 
<br>
 
::{{Par2|ypin|bool|false}}
 
::{{Par2|ypin|bool|false}}
 
::: Whether Y direction has pin cushion distortion?
 
::: Whether Y direction has pin cushion distortion?
 
+
::::* true for pin cushion
 
+
::::* false for barrel
::* true for pin cushion
+
::* false for barrel
+
 
<br>
 
<br>
 
::{{Par2|ya|float|0.05}}
 
::{{Par2|ya|float|0.05}}
 
::: Value of coefficient ya (start value in test mode )
 
::: Value of coefficient ya (start value in test mode )
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|yb|float|0.05}}
 
::{{Par2|yb|float|0.05}}
 
::: Value of coefficient yb (start value in test mode)
 
::: Value of coefficient yb (start value in test mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|yc|float|0.05}}
 
::{{Par2|yc|float|0.05}}
 
::: Value of coefficient yc (start value in test mode)
 
::: Value of coefficient yc (start value in test mode)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|yea|float|0.05}}
 
::{{Par2|yea|float|0.05}}
 
::: End value of coefficient ya (test mode only)
 
::: End value of coefficient ya (test mode only)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|yeb|float|0.05}}
 
::{{Par2|yeb|float|0.05}}
 
::: End value of coefficient yb (test mode only)
 
::: End value of coefficient yb (test mode only)
 
+
::::* Between -0.5 and 0.5
 
+
::* Between - 0.5 and 0.5
+
 
<br>
 
<br>
 
::{{Par2|yec|float|0.05}}
 
::{{Par2|yec|float|0.05}}
 
::: End value of coefficient yc (test mode only)
 
::: End value of coefficient yc (test mode only)
 +
::::* Between -0.5 and 0.5
  
 
::* Between - 0.5 and 0.5
 
 
<br>
 
<br>
  

Latest revision as of 15:11, 19 June 2019


Abstract
Author V.C.Mohan
Version 30 Dec 2016
Download movePlus.7z
Category External filters
License GPLv3
Discussion Original DeBarrel plugin, movePlus


Contents

[edit] Description

Corrects Barrel type or Pin Cushion type distortions in an image that result in due to camera lens projecting image on to a flat film or sensor array. Full Description


[edit] Requirements

  • AviSynth+ r2347 or later


[edit] Syntax and Parameters

Barrel (clip, float "a", float "b", float "c", bool "pin", float "vh", bool "test", float "ea", float "eb", float "ec", int "nsteps", Int "frame", Int "color", bool "ind", bool "ypin", float "ya", float "yb", float "yc", float "yea", float "yeb", float "yec")


clip   =
Input clip


float  a = 0.005
Coefficient a (xa in independent mode and start val in test mode)
  • Between -0.5 and 0.5


float  b = 0.005
Coefficient b (xb in independent mode and start val in test mode)
  • Between -0.5 and 0.5


float  c = 0.005
Coefficient c (xc in independent mode and start val in test mode)
  • Between -0.5 and 0.5


bool  pin = false
Whether to correct pin cushion or barrel type distortion
  • true = pin
  • false = barrel


bool  vh = 1.0
Vertical to horizontal distortion ratio
  • Between 0.1 and 10


bool  test = false
Whether in test mode
  • true = test
  • false = normal


float  ea = 0.05
End value of coefficient a in test mode (xea in independent mode)
  • Between -0.5 and 0.5


float  eb = 0.05
End value of coefficient b in test mode (xeb in independent mode)
  • Between -0.5 and 0.5


float  ec = 0.05
End value of coefficient c in test mode (xec in independent mode)
  • Between -0.5 and 0.5


int  nsteps = 20
Number of steps for variation (test mode only)
  • Between 0 and 100


Int  frame = 0
Input frame number for over lay (test mode only)
  • Within input clip


Int  color = 0
Color of dots in test mode and left out borders in normal
  • In RRGGBB format


bool  ind = false
Whether x and y have independent coefficients
  • true for independent
  • false for pin cushion or barrel


bool  ypin = false
Whether Y direction has pin cushion distortion?
  • true for pin cushion
  • false for barrel


float  ya = 0.05
Value of coefficient ya (start value in test mode )
  • Between -0.5 and 0.5


float  yb = 0.05
Value of coefficient yb (start value in test mode)
  • Between -0.5 and 0.5


float  yc = 0.05
Value of coefficient yc (start value in test mode)
  • Between -0.5 and 0.5


float  yea = 0.05
End value of coefficient ya (test mode only)
  • Between -0.5 and 0.5


float  yeb = 0.05
End value of coefficient yb (test mode only)
  • Between -0.5 and 0.5


float  yec = 0.05
End value of coefficient yc (test mode only)
  • Between -0.5 and 0.5


[edit] Examples

blankclip(width = 720, height = 480, pixel_type = "RGB32", color = $ffffff, length = 10)
grid()
Barrel()

Pin Cushion Distortion

Barrel(a = 0.005, b = 0.005, c = 0.005, pin = false)



Back to External Filters

Personal tools