TempLinearApproximate
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (redirect for convenient searching) |
(TempLinearApproximate: add documentation) |
||
Line 1: | Line 1: | ||
− | + | {{FilterCat5|External_filters|Plugins|Adjustment_filters|Averaging|Deep_color_tools}} | |
− | {{ | + | {{Filter3 |
+ | |1=[https://bitbucket.org/mystery_keeper/ Mystery Keeper] | ||
+ | |2=r6 | ||
+ | |3=[https://web.archive.org/web/20200706075248if_/https://files.videohelp.com/u/223002/TempLinearApproximate-r6.7z TempLinearApproximate-r6.7z] | ||
+ | |4=Averaging | ||
+ | |5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | ||
+ | |6=[https://forum.doom9.org/showthread.php?t=167032 Doom9 Thread]}} | ||
+ | |||
+ | == 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. | ||
+ | <br> | ||
+ | <br> | ||
+ | == Requirements == | ||
+ | * [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6] | ||
+ | * Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]] | ||
+ | <br> | ||
+ | == [[Script variables|Syntax and Parameters]] == | ||
+ | :{{Template:FuncDef|TempLinearApproximate (clip, int "radius", int "plane", bool "inLsb", bool "outLsb")}} | ||
+ | <br> | ||
+ | ::{{Par2| |clip| }} | ||
+ | :::Input clip. | ||
+ | <br> | ||
+ | ::{{Par2|radius|int|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. | ||
+ | <br> | ||
+ | ::{{Par2|plane|int|7}} | ||
+ | :::The sum of three flags of planes to process. 1=Y, 2=U, 4=V. By default all planes are processed. | ||
+ | <br> | ||
+ | ::{{Par2|inLsb|bool|false}} | ||
+ | :::Set to <code>true</code> if input clip is in [[Stack16]] bit format. | ||
+ | <br> | ||
+ | ::{{Par2|outLsb|bool|false}} | ||
+ | :::Set to <code>true</code> if you want output to be in [[Stack16]] bit format, whether input clip is [[Stack16]] bit or not. | ||
+ | <br> | ||
+ | == Examples == | ||
+ | TempLinearApproximate with default settings: | ||
+ | AviSource("blah.avi") | ||
+ | TempLinearApproximate(radius=5, plane=7, inLsb=false, outLsb=false) | ||
+ | |||
+ | |||
+ | [[Stack16|Stacked 16-bit]] processing with AviSynth+: | ||
+ | AviSource("blah.avi") | ||
+ | [[ConvertStacked|ConvertToStacked()]] | ||
+ | TempLinearApproximate(radius=5, plane=7, inLsb=true, outLsb=true) | ||
+ | [[ConvertStacked|ConvertFromStacked()]] | ||
+ | <br> | ||
+ | == Changelog == | ||
+ | Version Date(Y/M/D) Changes<br> | ||
+ | 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. | ||
+ | <br> | ||
+ | |||
+ | == Archived Downloads == | ||
+ | {| class="wikitable" border="1"; width="600px" | ||
+ | |- | ||
+ | !!width="100px"| Version | ||
+ | !!width="150px"| Download | ||
+ | !!width="150px"| Mirror | ||
+ | |- | ||
+ | !r6 | ||
+ | |[http://www.mediafire.com/file/au8t2k8mbkzb4c6/TempLinearApproximate-r6.7z/file TempLinearApproximate-r6.7z] | ||
+ | |[https://web.archive.org/web/20200706075248if_/https://files.videohelp.com/u/223002/TempLinearApproximate-r6.7z TempLinearApproximate-r6.7z] | ||
+ | |} | ||
+ | <br> | ||
+ | ==External Links == | ||
+ | *[https://bitbucket.org/mystery_keeper/templinearapproximate/src/master/ BitBucket] - Source code repository | ||
+ | <br> | ||
+ | <br> | ||
+ | ----------------------------------------------- | ||
+ | '''Back to [[External_filters#Averaging.2FLayering.2FMasking|External Filters]] ←''' |
Latest revision as of 09:03, 6 July 2020
Abstract | |
---|---|
Author | Mystery Keeper |
Version | r6 |
Download | TempLinearApproximate-r6.7z |
Category | Averaging |
License | GPLv2 |
Discussion | Doom9 Thread |
Contents |
[edit] 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.
[edit] Requirements
[edit] Syntax and Parameters
- TempLinearApproximate (clip, int "radius", int "plane", bool "inLsb", bool "outLsb")
- clip =
- Input clip.
- 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 radius = 5
- int plane = 7
- The sum of three flags of planes to process. 1=Y, 2=U, 4=V. By default all planes are processed.
- int plane = 7
- bool inLsb = false
- Set to
true
if input clip is in Stack16 bit format.
- Set to
- bool inLsb = false
[edit] 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()
[edit] 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.
[edit] Archived Downloads
Version | Download | Mirror |
---|---|---|
r6 | TempLinearApproximate-r6.7z | TempLinearApproximate-r6.7z |
[edit] External Links
- BitBucket - Source code repository
Back to External Filters ←