FixChromaticAberration

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (External Links)
 
(5 intermediate revisions by one user not shown)
Line 7: Line 7:
 
|5=
 
|5=
 
|6=[http://forum.doom9.org/showthread.php?t=162286 Doom9 Thread]}}
 
|6=[http://forum.doom9.org/showthread.php?t=162286 Doom9 Thread]}}
 +
 +
<br>
 
== Description ==
 
== Description ==
 
A script to reduce [http://en.wikipedia.org/wiki/Chromatic_aberration chromatic aberration]. This function stretches the red, green and/or blue channel according to a given factor symmetrically around the center of the frame and crops it afterwards. Note that chromatic aberration also smears the image a bit, which is not compensated by this function.
 
A script to reduce [http://en.wikipedia.org/wiki/Chromatic_aberration chromatic aberration]. This function stretches the red, green and/or blue channel according to a given factor symmetrically around the center of the frame and crops it afterwards. Note that chromatic aberration also smears the image a bit, which is not compensated by this function.
<br>
+
 
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
 
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater]
 
* AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater]
 
* Supported color formats: [[RGB32]], [[RGB24]]
 
* Supported color formats: [[RGB32]], [[RGB24]]
 +
 
<br>
 
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
Line 29: Line 32:
 
::{{Par2|y|val| }}
 
::{{Par2|y|val| }}
 
:::{{Template:FuncDef3|x}} and {{Template:FuncDef3|y}} allow to set the center of the aberration circle. It defaults to the center of the image.
 
:::{{Template:FuncDef3|x}} and {{Template:FuncDef3|y}} allow to set the center of the aberration circle. It defaults to the center of the image.
 +
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
Line 39: Line 43:
 
  Version      Date(D/M/Y)      Changes<br>
 
  Version      Date(D/M/Y)      Changes<br>
 
               04/09/2007      - Initial release
 
               04/09/2007      - Initial release
<br>
+
 
== External Links ==
+
(not edited enough yet)<br>
+
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Chroma_correction|External Filters]] &larr;'''
 
'''Back to [[External_filters#Chroma_correction|External Filters]] &larr;'''

Latest revision as of 23:39, 24 June 2018

Abstract
Author martin53 at doom9
Version 04/09/2007
Download FixChromaticAberration.avsi
Category Chroma Correction
License
Discussion Doom9 Thread


Contents

[edit] Description

A script to reduce chromatic aberration. This function stretches the red, green and/or blue channel according to a given factor symmetrically around the center of the frame and crops it afterwards. Note that chromatic aberration also smears the image a bit, which is not compensated by this function.


[edit] Requirements


[edit] Syntax and Parameters

FixChromaticAberration (clip clip, val "red", val "green", val "blue", val "x", val "y")


clip   =
Input clip.


val  red = 1
val  green = 1
val  blue = 1
red, green and blue are stretching (resizing) factors against the original clip size. Factors of e.g. red=1.015, green=1.01 allow to compensate the colored edges near the corners of the image which appear from lenses with 'chromatic aberration'.


val  x =
val  y =
x and y allow to set the center of the aberration circle. It defaults to the center of the image.


[edit] Examples

FixChromaticAberration with default settings:

AviSource("Blah.avi")
FixChromaticAberration(red=1, green=1, blue=1)


[edit] Changelog

Version      Date(D/M/Y)      Changes
04/09/2007 - Initial release



Back to External Filters

Personal tools