View Full Version : Photoshop-like channel mixer?
Is there a channel mixer plugin for avisynth which is comparable with the one in Photoshop? Basically, it would need 12 inputs (4 per channel): Red, Green, Blue, and Offset for each output channel, each input having a -200 to +200 range. Does such a thing exist, or if not, can one be easily created?
Nevermind, I found it: http://www.videohelp.com/forum/archive/nice-results-with-avisynth-color-channel-mixer-t339327.html
mikeytown2
6th July 2008, 22:35
If your using AvsP here is a script for using the sliders with ChannelMixer
ChannelMixer([<"Red", -200, 200, 100>],[<"R-G", -200, 200, 0>],[<"R-B", -200, 200, 0>],[<"G-R",-200,200,0>],[<"Green", -200, 200, 100>],[<"G-B",-200,200,0>],[<"B-R",-200,200,0>],[<"B-G",-200,200,0>],[<"Blue", -200, 200, 100>])
Samarita1964
24th March 2015, 15:50
I am confused with the 6 offset parameters.
What I observed, for example, parameter BG=+ve(say,50)e is closed to R=128 ,G=0,B=128, similarly BG=-ve(say, 50) means R=128,G=128,B=0 (Compairing with MS Paint).
But this logic is not working on rest of those offset parameters.What is the logic behind getting particular tint from a/combination of offset parameter(s).
If I want to add/remove a particular colour tint to/from the video, how will I proceed and what's the logic (from color wheel) behind it?
P.S. from colour wheel, I mean to say,for example,if we want to remove a particular tint, we need to add complementary color to it,that is color 180 degree opposite to the color in the color wheel.
StainlessS
24th March 2015, 18:15
Here attached ChannelMixer v1.0 + source, just in case other link disappears.
Makes for a pretty easy SimpleSample demo (0 byte SimpleSample.cpp still remains in src folder, so obvious where it came from).
Here the help file
=====================================================
= ChannelMixer v1.0 =
= Gustaf Ullberg 2007 =
=====================================================
An AviSynth filter similar (identical) to the
Channel Mixer in Adobe Photoshop.
Computes:
|Rout| |RR RG RB| |Rin|
| | | | | |
|Gout| = (1/100) * |GR GG GB| |Gin|
| | | | | |
|Bout| |BR BG BB| |Bin|
Executed like this (input values are floats):
ChannelMixer(RR, RG, RB, GR, GG, GB, BR, BG, BB)
Examples
Do nothing:
ChannelMixer(100, 0, 0, 0, 100, 0, 0, 0, 100)
Do something:
ChannelMixer(100, -26, 40, -4, 100, 10, 0, -12, 110)
Suggest look up Channel Mixer in Adobe Photoshop:- https://www.google.co.uk/?gws_rd=ssl#q=channel+mixer+photoshop
EDIT: Oops, is already on the Wiki here:- http://avisynth.nl/index.php/ChannelMixer
Samarita1964
24th March 2015, 19:50
@StainlessS
I already got it from wiki,
could you please elaborate on how to remove tint (say,bluish/greenish/yellowish/redish) and how to proceed?
actually I cant understand how to proceed,in what way I should go,how to fine tune those offset parameters as I dont know clearly how actually those 6 offset parameters effects.
StainlessS
24th March 2015, 19:54
could you please elaborate
No idea.
Suggest look to the Adobe stuff, and/or try out the AVSPMod sliders GUI thing. EDIT: via VideoHelp Link or Mikeytown2 post above.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.