FixChromaticAberration

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(add documentation)
m
Line 1: Line 1:
 
{{FilterCat4|External_filters|Scripts|Restoration_filters|Chroma correction}}
 
{{FilterCat4|External_filters|Scripts|Restoration_filters|Chroma correction}}
 
{{Filter3
 
{{Filter3
|Martin Wagener
+
|martin53 at doom9
 
|04/09/2007
 
|04/09/2007
 
|3=[[Media:FixChromaticAberration.avsi|FixChromaticAberration.avsi]]
 
|3=[[Media:FixChromaticAberration.avsi|FixChromaticAberration.avsi]]

Revision as of 21:58, 24 February 2017

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

Contents

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.

Requirements


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.


Examples

FixChromaticAberration with default settings:

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


Changelog

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


External Links




Back to External Filters

Personal tools