DeBarrel

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(V. C. Mohan's plugins are GPLv3 according to his site: http://www.avisynth.nl/users/vcmohan/index.html)
(Requirements)
Line 17: Line 17:
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* <!-- AviSynth version -->AviSynth+ r2347 or greater
+
* AviSynth+ r2347 or greater
* <!-- source video: progressive
+
* <!-- color formats -->Supported color formats: [[RGB24]], [[RGB32]], [[Y8]]
+
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==

Revision as of 06:53, 18 June 2018


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


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

  • AviSynth+ r2347 or greater

Syntax and Parameters

Barrel (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()

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




Back to External Filters

Personal tools