Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th September 2005, 17:42   #1  |  Link
mg262
Clouded
 
mg262's Avatar
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 1,148
Colour stabilisation

Here's a YV12 filter I recently built on request from one thrash_sensei... the idea and method are his:

http://people.pwf.cam.ac.uk/mg262/po...sk_11Sep05.dll

ColourMask(clip, int y, int u, int v, int lumathreshold, int chromathreshold)

returns a mask of those pixels whose colour is near (y,u,v), where nearness is defined by lumathreshold and chromathreshold. Chroma of the returned clip is nonsense.

ColourStabilise(clip, int y, int u, int v, int lumathreshold, int chromathreshold)
Replaces pixels whose colour is near (y,u,v) with colour (y,u,v), where nearness is defined by lumathreshold and chromathreshold. (Chroma subsampling is treated sensibly.)

RGBColourStabilise(clip, int colour, int lumathreshold, int chromathreshold)
Just like ColourStabilise but takes the colour as a RGB hex value. ( Rec.601 conversion ).

I think this is meant to be used on a scene by scene basis... I haven't tried this filter above and beyond making sure it was working correctly. Ask if you want the source or any technical details.
mg262 is offline   Reply With Quote
Old 12th September 2005, 04:18   #2  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
hey cool! i was thinking last night of muddling something like this together using tweak and vtoy,utoy, but a plugin is always welcome
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 12th September 2005, 16:05   #3  |  Link
mg262
Clouded
 
mg262's Avatar
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 1,148
thrash_sensei did actually make a script to do this, but it ran at 13 FPS, which is why I made the plug-in -- which he measured at about 300 FPS (though it could probably be made faster if there were any point).

I'm not masochistic enough to go through scene by scene fixing up colours like this... actually, I did at one point try to use the fact that the foreground is typically drawn with a limited palette to separate foreground and background, but it didn't work too well... I always ended up picking up a reasonable amount of background. On the other hand the material I work with is very much noisier than what most of you seem to be playing with...
mg262 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.