View Single Post
Old 18th March 2003, 00:14   #1  |  Link
Belgabor
VDubMod Devel
 
Belgabor's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 824
My first filter: Super8Equal

After requesting the Filter SDK I feel oblieged to publish my filter, although it is probably of low interest for most people

Code:
Overview:
One problem of the transfer of Super8 films to digital media is the inhomogenous
brightness produced by projectors. Usually the brighness drops in a circular
fashion from the center to the rim. This filter was written to counteract this
problem. (Alternatively it can be used to create the same flair ;) )


Usage:

Super8Equal(clip, center[float, 1.0], rim[float, 0.0], min[float, 0.0], max[float, 2.0])

center, rim:	The brightness of pixels is multiplicated by a factor calculated
		by linear interpolaration from the center factor to the rim factor,
		dependant on the distance from the center of the picture.
		The rim factor is reached in the corners of the picture.
min, max:	These are cut off values. The factor will never go below min or
		above max.

The filter is for AviSynth 2.5.x and works in all color spaces (the brightness alteration
is a bit diffrent between the RGB color spaces and YUY2/YV12).
Many thanks to Simon Walters for his sample on which this was built

Edit:
Download it here.

Cheers
Belgabor
__________________
VirtualDubMod [SourceForge : Tracker/DL] (FAQ, Some rules)
Be sure to also download the latest DLL package or get the all inclusive package!
Before you post questions, please read the VirtualDub and/or VirtualDubMod FAQ.
If you have a bug report or feature request for VirtualDubMod, be sure to read the rules first.
We give 100% of your donations to the Open Source community

Last edited by Belgabor; 20th March 2003 at 04:46.
Belgabor is offline   Reply With Quote