ColorBalance

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Syntax and Parameters)
(Archived Downloads: add link)
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat|External_filters|Adjustment_filters|Levels and Chroma}}
+
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Levels and Chroma filters}}
{{Filter2
+
{{Filter3
 
|Gavino & mikeytown2
 
|Gavino & mikeytown2
 
|v0.26
 
|v0.26
 
|{{Plugin/ColorBalance_0.26.zip}}
 
|{{Plugin/ColorBalance_0.26.zip}}
 
|Levels and Chroma
 
|Levels and Chroma
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]}}
+
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
<br>
+
|6=[http://forum.doom9.org/showthread.php?t=139361 Doom9 Thread]}}
 +
 
 
== Description ==
 
== Description ==
:Avisynth plugin to mimic the Gimp's Color Balance tool.
+
Avisynth plugin to mimic the [http://docs.gimp.org/en/gimp-tool-color-balance.html Gimp's Color Balance] tool.<br>
 
<br>
 
<br>
  
== Requirements: ==
+
== Requirements ==
:- AviSynth 2.5.8 or later
+
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
:- [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
+
* [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
:- Supported color formats: [[RGB24]], [[RGB32]]
+
* Supported color formats: [[RGB24]], [[RGB32]]
  
:- [http://www.microsoft.com/en-us/download/details.aspx?id=26347 Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)]
+
* [http://www.microsoft.com/en-us/download/details.aspx?id=26347 Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)]
 
<br>
 
<br>
== Syntax and Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|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")}}
 
:{{Template:FuncDef|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")}}
 +
<br>
 +
:::{{Par2| |clip| }}
 +
::::Input clip.
 
<br>
 
<br>
 
::'''Shadows'''
 
::'''Shadows'''
Line 27: Line 31:
 
:::{{Par2|bs|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 to 100.0
 
<br>
 
<br>
 
::'''Midtones'''
 
::'''Midtones'''
Line 35: Line 39:
 
:::{{Par2|bm|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 to 100.0
 
<br>
 
<br>
 
::'''Highlights'''
 
::'''Highlights'''
Line 43: Line 47:
 
:::{{Par2|bh|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 to 100.0
 
<br>
 
<br>
 
::'''Behavior'''
 
::'''Behavior'''
Line 49: Line 53:
 
:::{{Par2|keep_luma|bool|true}}
 
:::{{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 the brightness 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}}
 
:::{{Par2|clone_gimp|bool|true}}
Line 92: Line 95:
 
</pre>
 
</pre>
 
<br>
 
<br>
== Links ==
+
== Archived Downloads ==
 +
{| class="wikitable" border="1"; width="500px"
 +
|-
 +
!!width="100px"| Version
 +
!!width="150px"| Download
 +
!!width="150px"| Mirror
 +
|-
 +
!v0.26
 +
|[https://dl.dropbox.com/s/ve66ayxfnfet9u0/ColorBalance_0.26.zip ColorBalance_0.26.zip]
 +
|[https://web.archive.org/web/20200531022555if_/https://files.videohelp.com/u/223002/ColorBalance_0.26.zip ColorBalance_0.26.zip] /// [https://forum.videohelp.com/attachments/21288-1384680154/ColorBalance_0.26.zip Mirror 2]
 +
|}
 +
<br>
 +
 
 +
==External Links ==
 
*[http://forum.doom9.org/showthread.php?t=139361 Doom9 Forum] - ColorBalance discussion.
 
*[http://forum.doom9.org/showthread.php?t=139361 Doom9 Forum] - ColorBalance discussion.
<br>
 
<br>
 
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Levels_and_Chroma|External Filters]] &larr;'''
 
'''Back to [[External_filters#Levels_and_Chroma|External Filters]] &larr;'''
 +
-----------------------------------------------

Latest revision as of 07:32, 1 June 2020

Abstract
Author Gavino & mikeytown2
Version v0.26
Download ColorBalance_0.26.zip
Category Levels and Chroma
License GPLv2
Discussion Doom9 Thread

Contents

[edit] Description

Avisynth plugin to mimic the Gimp's Color Balance tool.

[edit] Requirements


[edit] 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")


clip   =
Input clip.


Shadows
float  rs = 0.0
float  gs = 0.0
float  bs = 0.0
Red, Green, and Blue shadows.
Range: -100.0 to 100.0


Midtones
float  rm = 0.0
float  gm = 0.0
float  bm = 0.0
Red, Green, and Blue midtones.
Range: -100.0 to 100.0


Highlights
float  rh = 0.0
float  gh = 0.0
float  bh = 0.0
Red, Green, and Blue highlights.
Range: -100.0 to 100.0


Behavior
bool  keep_luma = true
keep_luma corresponds to Gimp's 'Preserve Luminosity'.
This option ensures that the brightness is maintained. The value of the brightest pixels are not changed.


bool  clone_gimp = true
If set to false, ColorBalance will behave like CinePaint.


bool  highcolor = false
Do not use! Was meant to do internally process at 16-bit but was never finished.


[edit] Examples

AviSource("whatever.avi")
ColorBalance()


[edit] 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


[edit] Archived Downloads

Version Download Mirror
v0.26 ColorBalance_0.26.zip ColorBalance_0.26.zip /// Mirror 2


[edit] External Links



Back to External Filters


Personal tools