DeBarrel
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) m (added category) |
(Use movePlus' Barrel filter) |
||
Line 4: | Line 4: | ||
{{Filter3 | {{Filter3 | ||
|1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] | |1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] | ||
− | |2=<!-- version --> | + | |2=<!-- version -->30 Dec 2016 |
− | |3= | + | |3= [http://www.avisynth.nl/users/vcmohan/movePlus/movePlus.7z movePlus.7z] |
− | |4= | + | |4= External filters |
− | |5= | + | |5= Open Source |
− | |6=<!-- discussion URL -->[ | + | |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> | ||
− | |||
== Description == | == Description == | ||
<!-- a one-sentence description --> | <!-- a one-sentence 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 [http://www.avisynth.nl/users/vcmohan/ | + | 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 [http://www.avisynth.nl/users/vcmohan/movePlus/Barrel.html click me].<br> |
− | <br> | + | |
<br> | <br> | ||
== Requirements == | == Requirements == | ||
− | * <!-- | + | * <!-- AviSynth version -->AviSynth+ r2347 or greater |
* <!-- source video: progressive | * <!-- source video: progressive | ||
− | * <!-- color formats -->Supported color formats: [[RGB24]], [[RGB32]], | + | * <!-- color formats -->Supported color formats: [[RGB24]], [[RGB32]], [[Y8]] |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
− | :{{Template:FuncDef|<!-- function name --> | + | :{{Template:FuncDef|<!-- function name -->Barrel (''clip'', ''<!-- par 1 type -->float'' "<!-- par 1 name -->a", ''<!-- par 2 type -->float'' "<!-- par 2 name -->b", ''<!-- par 3 type -->float'' "<!-- par 3 name -->c", ''<!-- par 4 type -->bool'' "<!-- par 4 name -->pin", ''<!-- par 5 type -->bool'' "<!-- par 5 name -->test", ''<!-- par 6 type -->float'' "<!-- par 6 name -->ea", ''<!-- par 7 type -->float'' "<!-- par 7 name -->eb", ''<!-- par 8 type -->float'' "<!-- par 8 name -->ec",, ''<!-- par 9 type -->int'' "<!-- par 9 name -->nsteps", ''<!-- par 10 type -->int'' "<!-- par 10 name -->frame", ''<!-- par 11 type -->int'' "<!-- par 11 name -->color",''<!-- par 12 type -->float'' "<!-- par 12 name -->vh",''<!-- par 13 type -->bool'' "<!-- par 13 name -->ind",''<!-- par 14 type -->float'' "<!-- par 14 name -->ya",''<!-- par 15 type -->float'' "<!-- par 15 name -->yb",''<!-- par 16 type -->float'' "<!-- par 16 name -->yc", ''<!-- par 17 type -->float'' "<!-- par 17 name -->yea", ''<!-- par 18 type -->float'' "<!-- par 18 name -->yeb", ''<!-- par 19 type -->float'' "<!-- par 19 name -->yec", ''<!-- par 20 type -->bool'' "<!-- par 20 name -->ypin",)}} |
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
Line 101: | Line 95: | ||
Avisource("example.avi").converttoRGB32() | 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) | |
<!-- new code block: no leading space --> | <!-- new code block: no leading space --> | ||
## This is another example. | ## This is another example. | ||
Avisource("example.avi").converttoYV12() | Avisource("example.avi").converttoYV12() | ||
− | + | Barrel(a = 0.005, b = 0.0015, c = 0.0025,pin = false)) | |
<br> | <br> | ||
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters|External Filters]] ←''' | '''Back to [[External_filters|External Filters]] ←''' |
Revision as of 19:23, 4 April 2018
Abstract | |
---|---|
Author | V.C.Mohan |
Version | 30 Dec 2016 |
Download | movePlus.7z |
Category | External filters |
License | Open Source |
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
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.
- clip =
- a float = 0.005
- distortion coefficient a .
- a float = 0.005
- b float = 0.005
- distortion coefficient b .
- b float = 0.005
- c float = 0.005
- distortion coefficient c .
- c float = 0.005
- pin bool = false
- Is distortion pin cushion type?.
- pin bool = false
- test bool = false
- Is this a test run?
- test bool = false
- ea float = a
- distortion coefficient a at end step of test run.Value required only if test is true
- ea float = a
- eb float = b
- distortion coefficient b at end step of test run.Value required only if test is true.
- eb float = b
- ec float = c
- distortion coefficient c at end step of test run.Value required only if test is true.
- ec float = c
- nsteps int = 20
- number of steps parameters a, b, c to reach values ea, eb and ec in test run..
- nsteps int = 20
- frame int = 0
- frame number to be used in test run.
- frame int = 0
- color int = 0
- color value as rrggbb to be used to mark distortion pattern in test run.
- color int = 0
- vh float = 1.0
- in case of cinemascope or other cases wherein width or height is elongated ratio of vertical to horizontal over normal.
- vh float = 1.0
- ind bool = false
- Does horizontal and vertical distortions have independent coefficients?.
- ind bool = false
- ya float = a
- distortion coefficient for vertical ya (in case ind = true)
- ya float = a
- yb float = b
- distortion coefficient for vertical yb (in case ind = true).
- yb float = b
- yc float = c
- distortion coefficient for vertical yc (in case ind = true).
- yc float = c
- yea float = a
- distortion coefficient at end step for vertical yea (in case ind = true and test = true)
- yea float = a
- yeb float = b
- distortion coefficient at end step for vertical yeb (in case ind = true and test = true).
- yeb float = b
- yec float = c
- distortion coefficient at end step for vertical yc (in case ind = true and test = true).
- yec float = c
- ypin bool = false
- if vertical distortions have independent distortions, is it pin cushion type?.
- ypin bool = false
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 ←