ColorBalance
From Avisynth wiki
(Difference between revisions)
(ColorBalance v0.26) |
m (→Syntax and Parameters) |
||
Line 23: | Line 23: | ||
::'''Shadows''' | ::'''Shadows''' | ||
− | :::{{ | + | :::{{Par2|rs|float|0.0}} |
− | :::{{ | + | :::{{Par2|gs|float|0.0}} |
− | :::{{ | + | :::{{Par2|bs|float|0.0}} |
::::Red, Green, and Blue shadows. | ::::Red, Green, and Blue shadows. | ||
:::::Range: -100.0 - 100.0 | :::::Range: -100.0 - 100.0 | ||
Line 31: | Line 31: | ||
::'''Midtones''' | ::'''Midtones''' | ||
− | :::{{ | + | :::{{Par2|rm|float|0.0}} |
− | :::{{ | + | :::{{Par2|gm|float|0.0}} |
− | :::{{ | + | :::{{Par2|bm|float|0.0}} |
::::Red, Green, and Blue midtones. | ::::Red, Green, and Blue midtones. | ||
:::::Range: -100.0 - 100.0 | :::::Range: -100.0 - 100.0 | ||
Line 39: | Line 39: | ||
::'''Highlights''' | ::'''Highlights''' | ||
− | :::{{ | + | :::{{Par2|rh|float|0.0}} |
− | :::{{ | + | :::{{Par2|gh|float|0.0}} |
− | :::{{ | + | :::{{Par2|bh|float|0.0}} |
::::Red, Green, and Blue highlights. | ::::Red, Green, and Blue highlights. | ||
:::::Range: -100.0 - 100.0 | :::::Range: -100.0 - 100.0 | ||
Line 47: | Line 47: | ||
::'''Behavior''' | ::'''Behavior''' | ||
− | :::{{ | + | :::{{Par2|keep_luma|bool|true}} |
::::keep_luma corresponds to Gimp's 'Preserve Luminosity'. | ::::keep_luma corresponds to Gimp's 'Preserve Luminosity'. | ||
::::This option ensures that brightness of the active layer or selection is maintained. | ::::This option ensures that brightness of the active layer or selection is maintained. | ||
::::The value of the brightest pixels are not changed. | ::::The value of the brightest pixels are not changed. | ||
<br> | <br> | ||
− | :::{{ | + | :::{{Par2|clone_gimp|bool|true}} |
::::If set to false, ColorBalance will behave like CinePaint. | ::::If set to false, ColorBalance will behave like CinePaint. | ||
<br> | <br> | ||
− | :::{{ | + | :::{{Par2|highcolor|bool|false}} |
::::Do not use! Was meant to do internally process at 16-bit but was never finished. | ::::Do not use! Was meant to do internally process at 16-bit but was never finished. | ||
<br> | <br> | ||
+ | |||
== Examples == | == Examples == | ||
[[AviSource]]("whatever.avi") | [[AviSource]]("whatever.avi") |
Revision as of 15:26, 7 February 2014
Abstract | |
---|---|
Author | Gavino & mikeytown2 |
Version | v0.26 |
Download | ColorBalance_0.26.zip |
Category | Levels and Chroma |
License | GPLv2 |
Contents |
Description
- Avisynth plugin to mimic the Gimp's Color Balance tool.
Requirements:
- - AviSynth 2.5.8 or later
- - Progressive input only
- - Supported color formats: RGB24, RGB32
Syntax and Parameters
- ColorBalance (clip, float "rs", float "gs", float "bs", float "rm", float "gm", float "bm", float "rh", float "gh", float "bh", bool "keep_luma", bool "clone_gimp", bool "highcolor")
- Shadows
- float rs = 0.0
- float gs = 0.0
- float bs = 0.0
- Red, Green, and Blue shadows.
- Range: -100.0 - 100.0
- Red, Green, and Blue shadows.
- float rs = 0.0
- Midtones
- float rm = 0.0
- float gm = 0.0
- float bm = 0.0
- Red, Green, and Blue midtones.
- Range: -100.0 - 100.0
- Red, Green, and Blue midtones.
- float rm = 0.0
- Highlights
- float rh = 0.0
- float gh = 0.0
- float bh = 0.0
- Red, Green, and Blue highlights.
- Range: -100.0 - 100.0
- Red, Green, and Blue highlights.
- float rh = 0.0
- Behavior
- bool keep_luma = true
- keep_luma corresponds to Gimp's 'Preserve Luminosity'.
- This option ensures that brightness of the active layer or selection is maintained.
- The value of the brightest pixels are not changed.
- bool keep_luma = true
- bool clone_gimp = true
- If set to false, ColorBalance will behave like CinePaint.
- bool clone_gimp = true
- bool highcolor = false
- Do not use! Was meant to do internally process at 16-bit but was never finished.
- bool highcolor = false
Examples
AviSource("whatever.avi") ColorBalance()
Changelog
v0.1 (Gavino, 26th August 2008): - initial code based on Gimp v0.2 (Mikeytown2, 27th August 2008): - Added preserve luminosity from Gimp & got rid of all warnings in MS VC++ 2005 v0.21 (Mikeytown2, 27th August 2008): - Code Cleanup (tidy & logic(min,max)); Got rid of all if's from loops; Gimp support functions not in the ColorBalance class. v0.22 (Mikeytown2, 28th August 2008): - Bug with rounding in preserve_luminosity code, casts to int for now, avoiding pixels with color blowout. v0.23 (Mikeytown2, 28th August 2008): - More speed, doubles are now floats v0.24 (Mikeytown2, 28th August 2008): - scaled preserve_luminosity code by 64 (256*64=16384; 360*64=23040) - changed (float) to f; thanks for the tip IanB! v0.25 (Mikeytown2, 4th September 2008): - added in broken 16bit code - added an option to switch between gimp's and cinepaint's behavior. v0.26 (Mikeytown2, 5th September 2008): - fixed error with clone_gimp's default value - Thanks Gavino
Links
- Doom9 Forum - ColorBalance discussion.
Back to External Filters ←