Log in

View Full Version : How to Adjust RBG Levels ?


DegrainMedian
25th February 2009, 07:27
Hi guyz ... I would come straight to the topic
How to adjust the Red , Blue and green levels in YV12 ?:confused:

I have a Clip in which i have to add some red and minimize the blue and Sharp it

Everything is OK ... No i Want to adjust the Level of RBG exposure

I want to have Red more , Blue comparatively less and green untouched ...

Can someone Guide me ...
Simple Tweak is well and Good ... Just basic correction of exposure of Red , Blue and Green ...

Thanks in Advance :thanks:

Sagekilla
25th February 2009, 07:49
Simple:

RGB = last.ConvertToRGB32()

R = RGB.ShowRed("YV12")
G = RGB.ShowGreen("YV12")
B = RGB.ShowBlue("YV12")

# Do stuff here

MergeRGB(R, G, B)


Just apply your processing at the "Do stuff here" portion of things.

DegrainMedian
25th February 2009, 07:57
Simple:

RGB = last.ConvertToRGB32()

R = RGB.ShowRed("YV12")
G = RGB.ShowGreen("YV12")
B = RGB.ShowBlue("YV12")

# Do stuff here

MergeRGB(R, G, B)


Just apply your processing at the "Do stuff here" portion of things.

Sorry Sir .. Don't mistake me ...
I Didn't get u ...
Do stuff here means what stuff ? u mean R=** , g , b ?
Thanks in Advance ..

Sagekilla
25th February 2009, 15:41
Let's say you want to adjust the levels of the Red, green and blue channels separately. You would do it like this:

RGB = last.ConvertToRGB32()

R = RGB.ShowRed("YV12")
G = RGB.ShowGreen("YV12")
B = RGB.ShowBlue("YV12")

R = R.Levels(40,1,235,0,255)
G = G.Levels(16,1,205,0,255)
B = B.Levels(31,1.1,243,0,255)


MergeRGB(R, G, B)

DegrainMedian
27th February 2009, 05:54
Is there any problem if i call it like this ?

ConvertToRGB()
RGBAdjust(2, 1, 1, 1)
ConvertToYV12()

:confused:
Any hindrance for quality ?
:confused:

Sagekilla
27th February 2009, 06:27
Yes, you can do that. The above script I posted would be good if you want to do specific stuff like doing channel-specific enhancements (sharpening, for example). RGBAdjust() is fine if you just want to change color ratios though.

DegrainMedian
27th February 2009, 07:46
Yes, you can do that. The above script I posted would be good if you want to do specific stuff like doing channel-specific enhancements (sharpening, for example). RGBAdjust() is fine if you just want to change color ratios though.

Thanks .... Colour balance itself is OK for me ...:thanks: