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 7th May 2011, 22:11   #1  |  Link
FredMSloniker
Registered User
 
Join Date: May 2011
Posts: 5
HSV (de)composing: is it possible in AVISynth?

I want to produce a psychedelic effect in a short video clip by taking the saturation and value from one clip and the hue from another, merging them together. Combining the chroma from one and the luma from the other isn't what I want, because I want the first clip's gray areas to stay gray. I'm pretty sure I can't do that with out-of-the-box AVISynth, but if I'm wrong, I'd be happy to be corrected! If I'm not wrong, is there a plugin that would let me do this?
FredMSloniker is offline   Reply With Quote
Old 8th May 2011, 01:00   #2  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
You might be able to craft something using UtoY, VtoY and Masktools LUTs

Saturation is related to SQRT(U**2+V**2).

Hue is related to ARCTAN2(U, V).

Remember U and V data are biased by 128. So 16 means -1.0, 128 means 0.0 and 240 means +1.0 in normalised terms.
IanB 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 19:05.


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