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. |
![]() |
#21 | Link |
Registered User
Join Date: Feb 2004
Posts: 743
|
New VD filter
Take a look at this one.
http://neuron2.net/ipw-web/bulletin/...opic.php?t=593 richard photorecall.net |
![]() |
![]() |
![]() |
#22 | Link |
Moderator
![]() Join Date: Nov 2001
Location: Netherlands
Posts: 6,362
|
One thing I noticed with Graft's hue filter (Fdump's filter is based on it, since it used the same transformations) is the following:
Start with pure yellow (avs->blankclip). If you open the script in VDub, use Graft's hue filter and set the saturation to zero, you should get pure white. But you get R=G=B=234 instead. Perhaps it's because of the approximate transformations, perhaps there's an error in it. I really want to know how those transformations are derived. |
![]() |
![]() |
![]() |
#23 | Link |
Registered Jedi
Join Date: Jan 2003
Location: Georgia, U.S.A.
Posts: 733
|
Thank you for your work! It will be great having DG's Hue (with RGB support) ported to Avisynth.
BTW, I don't think removing the saturation from yellow makes it white. I'm thinking of a black and white TV show for instance. All the colors reduce to various shades of gray when the color is removed, but I would expect only pure white to actually stay white.
__________________
May the FOURCC be with you... |
![]() |
![]() |
![]() |
#24 | Link | |
Moderator
![]() Join Date: Nov 2001
Location: Netherlands
Posts: 6,362
|
Quote:
http://www2.ncsu.edu/scivis/lessons/...els2.html#hue. Pure yellow (or green, blue, red, etc ...) has an value (lightness) of 1. This implies that reducing the saturation turns it into white. Now, if the value is less than 1 (r=200,g=200,b=0 for example), then reducing the saturation turns it into grey. some formulas: http://en.wikipedia.org/wiki/HSV_color_space http://www.easyrgb.com/math.php?MATH=M21#text21 |
|
![]() |
![]() |
![]() |
#25 | Link | |
Registered Jedi
Join Date: Jan 2003
Location: Georgia, U.S.A.
Posts: 733
|
Quote:
Honestly, "Hue" and "Value" (or "Intensity") I couldn't care less about. I only want the "Saturation" control. ![]() Just to confuse you more, here's something I noticed: Try desaturating the same BlankClip in VirtualDub, first using Donald's "H/S/I" filter, and then using VirtualDub's internal "HSV adjust" filter. The results are quite different. Since DG is currently unavailable, perhaps you can ask Avery Lee if he has any thoughts on this. EDIT: Just thought of something else. IIRC in video there is the concept of colors being "NTSC safe." (There may also be a similar concept in PAL video.) A vectorscope is a device used to measure the color saturation of broadcast video, and determine if it is "safe" or not. The colors must fall within certain fixed boundaries. Therefore it may not be possible to represent "pure yellow" (or any other pure color) in the video world, i.e., it's always less than Value=1. Perhaps the VirtualDub filters are using formulas customized to reflect this concept...
__________________
May the FOURCC be with you... Last edited by fccHandler; 1st January 2005 at 05:11. |
|
![]() |
![]() |
![]() |
#26 | Link | ||
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
![]() Quote:
|
||
![]() |
![]() |
![]() |
#29 | Link |
Moderator
![]() Join Date: Nov 2001
Location: Netherlands
Posts: 6,362
|
I'm so confused
![]() Regarding Graft's hue filter. The saturation setting does the following. Setting it to one leaves the rgb clip untouched, and setting it to zero sets the rgb clip to (r,g,b)=(y,y,y) where y is the luminance (as in yuv). In [0,1] it just performs a linear interpolation (and linear extrapolation outside [0,1]). Normally we have y = 0.299*r + 0.587*g + 0.114*b, but they use a gamma-corrected version: y = 0.3086*r + 0.6094*g + 0.0820*b (don't know yet where these numbers are coming from ...). http://www.sgi.com/misc/grafica/matrix/index.html What I don't understand is, how is this related to the saturation in the hsv color format? I guess there's no relation? Setting the saturation to zero results in (r,g,b) = (V,V,V) with V = max(r,g,b) and setting it to one the (r,g,b) may or may not change. Last edited by Wilbert; 2nd January 2005 at 17:47. |
![]() |
![]() |
![]() |
#30 | Link |
Moderator
![]() Join Date: Nov 2001
Location: Netherlands
Posts: 6,362
|
@fccHandler,
First test version: http://www.wilbertdijkhof.com/Hue_v10.zip It should produce identical results. I also want to look at the hue implementation of the internal vdub hsi filter. Adjusting hue is implemented correctly here. Last edited by Wilbert; 16th October 2011 at 09:42. |
![]() |
![]() |
![]() |
#31 | Link | |
Registered Jedi
Join Date: Jan 2003
Location: Georgia, U.S.A.
Posts: 733
|
Quote:
__________________
May the FOURCC be with you... |
|
![]() |
![]() |
![]() |
#32 | Link | ||
Registered Jedi
Join Date: Jan 2003
Location: Georgia, U.S.A.
Posts: 733
|
Quote:
Just to be complete, I noticed that the original H/S/I filter GUI has a checkbox "Preserve luma on hue change," but I don't see that option in the docs of your version. Quote:
![]()
__________________
May the FOURCC be with you... |
||
![]() |
![]() |
![]() |
#33 | Link | |
Moderator
![]() Join Date: Nov 2001
Location: Netherlands
Posts: 6,362
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#34 | Link |
Anime addict
Join Date: Feb 2009
Location: Spain
Posts: 674
|
I resurrected the thread to request that the last option of the filter be finished. Thanks.
__________________
Intel i7-6700K + Noctua NH-D15 + Z170A XPower G. Titanium + Kingston HyperX Savage DDR4 2x8GB + Radeon RX580 8GB DDR5 + ADATA SX8200 Pro 1 TB + Antec EDG750 80 Plus Gold Mod + Corsair 780T Graphite |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|