DeBarrel
From Avisynth wiki
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 30 Dec 2016 |
Download | movePlus.7z |
Category | External filters |
License | GPLv3 |
Discussion | Original DeBarrel plugin, movePlus |
Contents |
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
Requirements
- AviSynth+ r2347 or later
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.
- clip =
- float a = 0.005
- Coefficient a (xa in independent mode and start val in test mode)
- float a = 0.005
- Between - 0.5 and 0.5
- float b = 0.005
- Coefficient b (xb in independent mode and start val in test mode)
- float b = 0.005
- Between - 0.5 and 0.5
- float c = 0.005
- Coefficient c (xc in independent mode and start val in test mode)
- float c = 0.005
- Between - 0.5 and 0.5
- bool pin = false
- Whether to correct pin cushion or barrel type distortion
- bool pin = false
- true for pin
- false for barrel
- bool vh = 1.0
- Vertical to horizontal distortion ratio
- bool vh = 1.0
- Between 0.1 and 10
- bool test = false
- Whether in test mode
- bool test = false
- true for test
- false for normal
- float ea = 0.05
- End value of coefficient a in test mode (xea in independent mode)
- float ea = 0.05
- Between - 0.5 and 0.5
- float eb = 0.05
- End value of coefficient b in test mode (xeb in independent mode)
- float eb = 0.05
- Between - 0.5 and 0.5
- float ec = 0.05
- End value of coefficient c in test mode (xec in independent mode)
- float ec = 0.05
- Between - 0.5 and 0.5
- int nsteps = 20
- Number of steps for variation (test mode only)
- int nsteps = 20
- Between 0 and 100
- Int frame = 0
- Input frame number for over lay (test mode only)
- Int frame = 0
- Within input clip
- Int color = 0
- Color of dots in test mode and left out borders in normal
- Int color = 0
- In RRGGBB format
- bool ind = false
- Whether x and y have independent coefficients
- bool ind = false
- true for independent
- false for pin cushion or barrel
- bool ypin = false
- Whether Y direction has pin cushion distortion?
- bool ypin = false
- true for pin cushion
- false for barrel
- float ya = 0.05
- Value of coefficient ya (start value in test mode )
- float ya = 0.05
- Between - 0.5 and 0.5
- float yb = 0.05
- Value of coefficient yb (start value in test mode)
- float yb = 0.05
- Between - 0.5 and 0.5
- float yc = 0.05
- Value of coefficient yc (start value in test mode)
- float yc = 0.05
- Between - 0.5 and 0.5
- float yea = 0.05
- End value of coefficient ya (test mode only)
- float yea = 0.05
- Between - 0.5 and 0.5
- float yeb = 0.05
- End value of coefficient yb (test mode only)
- float yeb = 0.05
- Between - 0.5 and 0.5
- float yec = 0.05
- End value of coefficient yc (test mode only)
- float yec = 0.05
- Between - 0.5 and 0.5
Examples
blankclip(width = 720, height = 480, pixel_type = "RGB32", color = $ffffff, length = 10) grid()
Image with independent distortions
Barrel(test=true, pin=false, ind=true, a=0.05, b=0.011, c=0.001, ea=.02, eb=0.012, ec=0.001, ya=0.1, yb=0.011, yc=0.001, yea=0.01, yeb=0.005, yec=0.005, ypin=true, color=$ffffff)
Back to External Filters ←