ChannelMixer

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Syntax and Parameters)
m
Line 8: Line 8:
 
<br>
 
<br>
 
== Description ==
 
== Description ==
:An AviSynth filter similar to the Channel Mixer in Adobe Photoshop.
+
:An AviSynth filter similar to the Channel Mixer in Adobe Photoshop CS2.
 
<br>
 
<br>
 
== Requirements: ==
 
== Requirements: ==
Line 42: Line 42:
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
The output of ChannelMixer with all default settings is identical to the input. In other words; a very slow no-op.
+
ChannelMixer with the following settings is identical to the input. In other words; a very slow no-op.
 
  [[AviSource]]("blah.avi")
 
  [[AviSource]]("blah.avi")
 
  ChannelMixer(RR=100.0, RG=0.0, RB=0.0, GR=0.0, GG=100.0, GB=0.0, BR=0.0, BG=0.0, BB=100.0)
 
  ChannelMixer(RR=100.0, RG=0.0, RB=0.0, GR=0.0, GG=100.0, GB=0.0, BR=0.0, BG=0.0, BB=100.0)
Line 52: Line 52:
 
<br>
 
<br>
 
== Changelog ==
 
== Changelog ==
<pre>
+
Version      Date            Changes<br>
v1.0 2007-04-30
+
v1.0         2007/04/30     - Initial release
  - Initial release
+
</pre>
+
 
<br>
 
<br>
 
== Links ==
 
== Links ==
 +
*[http://forum.doom9.org/showthread.php?p=1002616#post1002616 Doom9 Forum] - Initial release.
 
*[http://forum.videohelp.com/threads/278516-Nice-Results-With-Avisynth-Color-Channel-Mixer VideoHelp Forum] - ChannelMixer discussion.
 
*[http://forum.videohelp.com/threads/278516-Nice-Results-With-Avisynth-Color-Channel-Mixer VideoHelp Forum] - ChannelMixer discussion.
 +
*[http://web.archive.org/web/20140204134322/http://forum.videohelp.com/images/guides/p1767998/channelmixer_v1_0.zip Archive.org] - Archived download.
 
<br>
 
<br>
 
<br>
 
<br>

Revision as of 16:00, 4 February 2014

Abstract
Author Gustaf Ullberg
Version v1.0
Download channelmixer_v1_0.zip
Category Levels and Chroma
License GPLv2


Contents

Description

An AviSynth filter similar to the Channel Mixer in Adobe Photoshop CS2.


Requirements:

- AviSynth 2.5.8 or later
- Progressive input only
- Supported color formats: RGB24, RGB32


Syntax and Parameters

ChannelMixer (clip, float "RR", float "RG", float "RB", float "GR", float "GG", float "GB", float "BR", float "BG", float "BB")


Red
float  RR = 0.0
float  RG = 0.0
float  RB = 0.0
Red-Red, Red-Green, and Red-Blue.


Green
float  GR = 0.0
float  GG = 0.0
float  GB = 0.0
Green-Red, Green-Green, and Green-Blue.


Blue
float  BR = 0.0
float  BG = 0.0
float  BB = 0.0
Blue-Red, Blue-Green, and Blue-Blue.


Range for all parameters: -255.0 - 255.0


Examples

ChannelMixer with the following settings is identical to the input. In other words; a very slow no-op.

AviSource("blah.avi")
ChannelMixer(RR=100.0, RG=0.0, RB=0.0, GR=0.0, GG=100.0, GB=0.0, BR=0.0, BG=0.0, BB=100.0)


Removing blue tint with ChannelMixer:

AviSource("blah.avi")
ChannelMixer(RR=100.0, RG=20.0, RB=-5.0, GR=0.0, GG=100.0, GB=0.0, BR=-20.0, BG=0.0, BB=100.0)

ChannelMixer Before&After.png

Changelog

Version      Date            Changes
v1.0 2007/04/30 - Initial release


Links





Back to External Filters

Personal tools