TempLinearApproximate

From Avisynth wiki
Jump to: navigation, search
Abstract
Author Mystery Keeper
Version r6
Download TempLinearApproximate-r6.7z
Category Averaging
License GPLv2
Discussion Doom9 Thread

Contents

Description

TempLinearApproximate takes several frames and for each pixel calculates linear approximation of its values through time, then returns its value in the middle (unless close to beginning or end of clip) of that line. Meant mainly for denoising aid in motion compensated clips. If you use it on plain video - you'll just get heavy ghosting.

Requirements


Syntax and Parameters

TempLinearApproximate (clip, int "radius", int "plane", bool "inLsb", bool "outLsb")


clip   =
Input clip.


int  radius = 5
The size of neighborhood of the current frame. Approximation is made by (radius * 2 + 1) points, unless close to beginning or end - it is trimmed in these cases.


int  plane = 7
The sum of three flags of planes to process. 1=Y, 2=U, 4=V. By default all planes are processed.


bool  inLsb = false
Set to true if input clip is in Stack16 bit format.


bool  outLsb = false
Set to true if you want output to be in Stack16 bit format, whether input clip is Stack16 bit or not.


Examples

TempLinearApproximate with default settings:

AviSource("blah.avi")
TempLinearApproximate(radius=5, plane=7, inLsb=false, outLsb=false)


Stacked 16-bit processing with AviSynth+:

AviSource("blah.avi")
ConvertToStacked()
TempLinearApproximate(radius=5, plane=7, inLsb=true, outLsb=true)
ConvertFromStacked()


Changelog

Version      Date(Y/M/D)      Changes
r6 2013/02/05 - Full AviSynth 2.6 support. r5 - Added support for stacked 16 bit format. r4 - Fixed clamping issue changing white to black and black to white. r3 - Optimization. r2 - Fixed handling the frames pitch. r1 2013/01/26 - Initial release.


Archived Downloads

Version Download Mirror
r6 TempLinearApproximate-r6.7z TempLinearApproximate-r6.7z


External Links




Back to External Filters

Personal tools