DeBarrel

From Avisynth wiki
Jump to: navigation, search


Abstract
Author V.C.Mohan
Version 1.0.0.0.0
Download DeBarrel 2.6.0 alpha5 version URL -->DeBarrel
Category External filters
License GPLv2
Discussion DeBarrel plugin


Contents

Description

Barrel type and pin cushion type of distortion caused by camera lenses makes straight lines appear as curved lines and this is corrected and for a Full description click me.

Requirements

* Not available in AviSynth 2.5.8


Syntax and Parameters

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


clip   =
Input clip.


a  float = 0.005
distortion coefficient a .


b  float = 0.005
distortion coefficient b .


c  float = 0.005
distortion coefficient c .


pin  bool = false
Is distortion pin cushion type?.


test  bool = false
Is this a test run?


ea  float = a
distortion coefficient a at end step of test run.Value required only if test is true


eb  float = b
distortion coefficient b at end step of test run.Value required only if test is true.


ec  float = c
distortion coefficient c at end step of test run.Value required only if test is true.


nsteps  int = 20
number of steps parameters a, b, c to reach values ea, eb and ec in test run..


frame  int = 0
frame number to be used in test run.


color  int = 0
color value as rrggbb to be used to mark distortion pattern in test run.


vh  float = 1.0
in case of cinemascope or other cases wherein width or height is elongated ratio of vertical to horizontal over normal.


ind  bool = false
Does horizontal and vertical distortions have independent coefficients?.


ya  float = a
distortion coefficient for vertical ya (in case ind = true)


yb  float = b
distortion coefficient for vertical yb (in case ind = true).


yc  float = c
distortion coefficient for vertical yc (in case ind = true).


yea  float = a
distortion coefficient at end step for vertical yea (in case ind = true and test = true)


yeb  float = b
distortion coefficient at end step for vertical yeb (in case ind = true and test = true).


yec  float = c
distortion coefficient at end step for vertical yc (in case ind = true and test = true).


ypin  bool = false
if vertical distortions have independent distortions, is it pin cushion type?.



Examples

## This is some example code to test for an image with independent distortions.
Avisource("example.avi").converttoRGB32()

DeBarrel(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)
## This is another example.
Avisource("example.avi").converttoYV12()
DeBarrel(a = 0.005, b = 0.0015, c = 0.0025,pin = false))




Back to External Filters

Personal tools