Latest revision |
Your text |
Line 1: |
Line 1: |
− | <div {{BlueBox2|40|0|3px solid purple}} >
| |
− | {{AvsPlusFullname}}<br>
| |
− | Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/fixluminance.html https://avisynthplus.readthedocs.io]
| |
− | </div>
| |
− |
| |
− |
| |
− | ''Deprecated: see [[Talk:FixLuminance|discussion]]''
| |
− |
| |
− |
| |
| {{Template:FuncDef|FixLuminance(clip ''clip'', int ''intercept'', int ''slope'')}} | | {{Template:FuncDef|FixLuminance(clip ''clip'', int ''intercept'', int ''slope'')}} |
| | | |
− | :{{Par2|intercept|int|(required)}}
| + | 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. |
− | ::Bottom line at which to start correction. {{FuncArg|intercept}} should be equal to or smaller than the height of the image.
| + | |
− | | + | |
− | :{{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. In practice it only works for NTSC content and it needs its fields separated. | + | |
− | | + | |
− | When applying it to an image with height > 255 pixels, you will see a repetitive gradient. So it doesn't work for field-separated PAL content.
| + | |
− | | + | |
− | This filter works requires [[YUY2]] input.
| + | |
− | | + | |
− | ==== Examples ====
| + | |
− | *Progressively darken top lines.
| + | |
− | <div {{BoxWidthIndent|48|2}} >
| + | |
− | [[ColorBars]](pixel_type="YUY2")
| + | |
− | [[Crop]](0, 0, 0, 256)
| + | |
− | FixLuminance(100, 4)
| + | |
− | [[File:FixLuminance1.png]]<br>
| + | |
− | Line 99 is normal; line 0, the topmost line, is darker by 25 ({{FuncArg|intercept}}/{{FuncArg|slope}} = 100/4 = 25)
| + | |
− | </div>
| + | |
− | | + | |
| | | |
− | *Make a ''ramp'' test image.
| + | This filter works only with YUY2 input. |
− | <div {{BoxWidthIndent|48|2}} >
| + | |
− | [[BlankClip]](height=256, pixel_type="YUY2", color_yuv=$ff8080)
| + | |
− | FixLuminance(255, 1)
| + | |
− | [[File:FixLuminance2.png]]
| + | |
− | </div>
| + | |
| | | |
| | | |
| [[Category:Internal filters]] | | [[Category:Internal filters]] |
− | [[Category:Levels_and_Chroma_filters]]
| |