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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 30th October 2012, 18:55   #1  |  Link
mathmax
Registered User
 
Join Date: Mar 2010
Posts: 158
adjust the levels of chroma channels

Hello

I would like to fix the problem on the bright area in the image below.

As you can see, the RGB histograms shows irregular peaks around 255: the R peak is huge, the B peak is medium and the G peak is low.

Is there a way to adjust the levels of each channel individually? Usually the levels applies on luma, but I would like to adjust each chroma channel and to cut the values above 250, this in order to wash this area to white.

mathmax is offline  
Old 30th October 2012, 19:10   #2  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
it's best to deal with chroma in rgb in my experience although a bit of preprocess with coloryuv don't hurt , for virtualdub there are 3 filters i like: colormill , rgb equalizer and gradation curves
have a look here: http://www.engon.de/audio/vhs4_en.htm
Mounir is offline  
Old 30th October 2012, 22:02   #3  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Use something like Levels(230, 1.0, 235, 0, 255, coring=False) to create a 0 to 255 mask of the effected areas.

Then overlay a GreyScale(), zero saturation, version of the clip into the masked areas, something like :-

Overlay( GreyScale(), Mask=Levels(230,1.0,235, 0,255, coring=False) )

Adjust the 230 and 235 values to best suit finding the aberrant pixels.
IanB is offline  
Old 30th October 2012, 22:06   #4  |  Link
mathmax
Registered User
 
Join Date: Mar 2010
Posts: 158
Thank you

I tried to play with RGB equalizer but I don't really succeed to fix this problem properly..

Would someone be so kind to have a try? Here is a short sample:
http://www.mediafire.com/?47bz11g1hf28y30

Any advices is also very welcome

EDIT: @IanB
I was thinking about something like this.. and I'll try it right now. Thank you

Last edited by mathmax; 30th October 2012 at 22:11.
mathmax is offline  
Old 30th October 2012, 22:38   #5  |  Link
mathmax
Registered User
 
Join Date: Mar 2010
Posts: 158
I don't like the result so much.. :s

-first, I needed to apply Greyscale() on the mask
-second, the mask also concerns the bright part around the pink area.. and it makes it look grey, which is not the desired effect. :s

The weird thing is that this pink area should be the brightest part.. but because of oversaturation, it becomes finally less bright than the rest. Is it due to a wrong YUV<->RGB convertion?


original


mask


fixed


Last edited by mathmax; 30th October 2012 at 22:41.
mathmax is offline  
Old 30th October 2012, 22:40   #6  |  Link
TheSkiller
Registered User
 
Join Date: Dec 2007
Location: Germany
Posts: 632
What about

Code:
R=Levels(0,1,255, 0,210, false) #not tested
G=last
B=last
MergeRGB(R,G,B)
TheSkiller is offline  
Old 30th October 2012, 22:50   #7  |  Link
mathmax
Registered User
 
Join Date: Mar 2010
Posts: 158
Quote:
Originally Posted by TheSkiller View Post
What about

Code:
R=Levels(0,1,255, 0,210, false) #not tested
G=last
B=last
MergeRGB(R,G,B)
I don't understand it..
mathmax is offline  
Old 30th October 2012, 22:55   #8  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
@mathmax

Please clarify in a PM to me regarding the origin of this video to get the thread re-opened.
Guest is offline  
Closed Thread

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 06:51.


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