PDA

View Full Version : planing a filter for "color-tinting"


E-Male
29th August 2003, 16:41
first for those who don't know what color tinting is:
it's basicly b&w, but instead of shades-grey you have shades of another color, but black is still black
this was used in the times of b&w-cinema and realy makes a difference to simple b&w.


now here's what i do to imitate this with an avisynth-plugin:

1st i made an advanced greyscale plugin with two parameters, which are the chorma-values
the filter simply replaces the chroma of the clip with the values from the parameters and keeps the luma

the only thing that isn't right yet is that black is lost, so I think of adding a 3rd parameter, which will be a threashold
now if the luma raises between "black minus threadhold" and "black" the chroma fades between the chroma from the parameters and black

[hope you get what i mean, it's harder to explain than i thought]


well, your turn
any comments, suggestions, corrections
just post

thx
cu
E-Male

morsa
30th August 2003, 00:50
I'd like the idea of having the posibility of mixing the tint with the colour image within the filter.Is it posible?

Tuesday
31st August 2003, 00:57
Maybe im missing something, but cant this effect be achieved by combining the Greyscale() and ColorYUV() plugins?

Greyscale() does what it says on the tin, and then ColorYUV() can be used to change the colour of the image.

Both plugins come as standard with AviSynth so their docs are also included.

Tuesday

E-Male
31st August 2003, 01:24
@morsa: normally the source should be b&w, but what you want could be done woth this filter and mergechroma

@tuesday: i tried that, no good at all IMO