FixLuminance

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (added category)
m (formatting, links, phrasing)
Line 1: Line 1:
 
{{Template:FuncDef|FixLuminance(clip ''clip'', int ''intercept'', int ''slope'')}}
 
{{Template:FuncDef|FixLuminance(clip ''clip'', int ''intercept'', int ''slope'')}}
  
My VCR has the annoying habit of making the top of each frame brighter than the bottom. The purpose of this filter is to progressively darken the top of the image to compensate for this. If you've noticed a similar problem with your VCR, email me and I'll finish this explanation of how the filter works. Otherwise, you can pretend it doesn't exist.  
+
:{{Par2|intercept|int|(required)}}
 +
::Line at which to start correction.
  
This filter works only with YUY2 input.
+
:{{Par2|slope|int|(required)}}
 +
::Slope of correction function. The top of the picture is made darker by 1 (on a 0-255 scale) every {{FuncArg|slope}} lines.
 +
::Maximum darkening (at top line) = {{FuncArg|intercept}} / {{FuncArg|slope}}
  
 +
 +
The purpose of this filter is to progressively darken the top of the image; for example, to compensate for certain VCRs which make the top of each frame brighter than the bottom. This filter works only with [[YUY2]] input.
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]
 
[[Category:Levels_and_Chroma_filters]]
 
[[Category:Levels_and_Chroma_filters]]

Revision as of 01:49, 17 January 2016

FixLuminance(clip clip, int intercept, int slope)

int  intercept = (required)
Line at which to start correction.
int  slope = (required)
Slope of correction function. The top of the picture is made darker by 1 (on a 0-255 scale) every slope lines.
Maximum darkening (at top line) = intercept / slope


The purpose of this filter is to progressively darken the top of the image; for example, to compensate for certain VCRs which make the top of each frame brighter than the bottom. This filter works only with YUY2 input.

Personal tools