ChanMix

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(ChanMix)
 
(add archived downloads section)
 
(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
 
|E-Male
 
|E-Male
 
|2005/02/28
 
|2005/02/28
|[http://neuron2.net/misc/chanmix.zip chanmix.zip]
+
|[{{N2Moved}}/misc/chanmix.zip chanmix.zip]
 
|Levels and Chroma
 
|Levels and Chroma
|}}
+
|
<br>
+
|6=[http://forum.doom9.org/showthread.php?p=617731#post617731 Doom9 Thread]}}
 +
 
 
== Description ==
 
== Description ==
:Creates a grayscale image from an RGB24 source, it has 3 parameters to specify how much of each color channel is used.
+
Creates a greyscale image from an [[RGB24]] source, it has 3 parameters to specify how much of each color channel is used.<br>
 
<br>
 
<br>
== Requirements: ==
+
== Requirements ==
:- AviSynth 2.5.8 or later
+
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.5.8 or greater]
:- [[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]]
:- Supported color formats: [[RGB24]]
+
 
<br>
 
<br>
== Syntax and Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|chanmix (''clip'', ''float'' "r", ''float'' "g", ''float'' "b")}}
 
:{{Template:FuncDef|chanmix (''clip'', ''float'' "r", ''float'' "g", ''float'' "b")}}
 +
<br>
 +
::{{Par2| |clip| }}
 +
:::Input clip.
 
<br>
 
<br>
 
::{{Par2|r|float|1.0}}
 
::{{Par2|r|float|1.0}}
Line 26: Line 29:
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
ChanMix with default settings.
+
ChanMix with default settings:
 
  [[AviSource]]("blah.avi")
 
  [[AviSource]]("blah.avi")
 
  chanmix(r=1.0, g=1.0, b=1.0)
 
  chanmix(r=1.0, g=1.0, b=1.0)
 
<br>
 
<br>
 +
Here are some examples where ChanMix is ''visually'' identical (but slower) to [[GreyScale|Greyscale]]:
 +
# Identical to Greyscale(matrix="Rec601")
 +
[[AviSource]]("blah.avi")
 +
chanmix(r=0.299, g=0.587, b=0.114)
 +
 +
# Identical to Greyscale(matrix="Rec709")
 +
[[AviSource]]("blah.avi")
 +
chanmix(r=0.2126, g=0.7152, b=0.0722)
 +
 +
# Identical to Greyscale(matrix="Average")
 +
[[AviSource]]("blah.avi")
 +
chanmix(r=0.333333, g=0.333333, b=0.333333)
 +
<br>
 +
ChanMix with luma coefficients from [http://en.wikipedia.org/wiki/Rec._2020#Luma_coefficients Rec. 2020]:
 +
 +
[[AviSource]]("blah.avi")
 +
chanmix(r=0.2627, g=0.6780, b=0.0593)
 +
<br>
 +
 
== Changelog ==
 
== Changelog ==
 
  Version        Date            Changes<br>
 
  Version        Date            Changes<br>
 
  2005/02/28      2005/02/28      - Initial release
 
  2005/02/28      2005/02/28      - Initial release
 
<br>
 
<br>
== Links ==
+
== Archived Downloads ==
*[http://forum.doom9.org/showthread.php?p=617731#post617731 Doom9 Forum] - ChanMix discussion.
+
{| class="wikitable" border="1"; width="400px"
*[http://web.archive.org/web/20140205134521/http://neuron2.net/misc/chanmix.zip Archive.org] - Archived download.
+
|-
 +
!!width="100px"| Version
 +
!!width="150px"| Download
 +
!!width="150px"| Mirror
 +
|-
 +
!2005/02/28
 +
|[http://rationalqm.us/misc/chanmix.zip chanmix.zip]
 +
|[https://web.archive.org/web/20140205134521if_/http://neuron2.net/misc/chanmix.zip chanmix.zip]
 +
|}
 
<br>
 
<br>
 +
 +
==External Links ==
 +
*[http://forum.doom9.org/showthread.php?p=617731#post617731 Doom9 Forum] - ChanMix 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 02:25, 13 July 2020

Abstract
Author E-Male
Version 2005/02/28
Download chanmix.zip
Category Levels and Chroma
License
Discussion Doom9 Thread

Contents

[edit] Description

Creates a greyscale image from an RGB24 source, it has 3 parameters to specify how much of each color channel is used.

[edit] Requirements


[edit] Syntax and Parameters

chanmix (clip, float "r", float "g", float "b")


clip   =
Input clip.


float  r = 1.0
float  g = 1.0
float  b = 1.0
The weight of each color channel.
Gray = (red*r + green*g + blue*b) / (r+g+b)


[edit] Examples

ChanMix with default settings:

AviSource("blah.avi")
chanmix(r=1.0, g=1.0, b=1.0)


Here are some examples where ChanMix is visually identical (but slower) to Greyscale:

# Identical to Greyscale(matrix="Rec601") 
AviSource("blah.avi")
chanmix(r=0.299, g=0.587, b=0.114)
# Identical to Greyscale(matrix="Rec709")
AviSource("blah.avi")
chanmix(r=0.2126, g=0.7152, b=0.0722)
# Identical to Greyscale(matrix="Average")
AviSource("blah.avi")
chanmix(r=0.333333, g=0.333333, b=0.333333)


ChanMix with luma coefficients from Rec. 2020:

AviSource("blah.avi")
chanmix(r=0.2627, g=0.6780, b=0.0593)


[edit] Changelog

Version         Date            Changes
2005/02/28 2005/02/28 - Initial release


[edit] Archived Downloads

Version Download Mirror
2005/02/28 chanmix.zip chanmix.zip


[edit] External Links




Back to External Filters

Personal tools