Log in

View Full Version : wrong color balanced camcorder


Terka
25th May 2009, 12:25
http://img529.imageshack.us/img529/9639/clipboard01iky.jpg (http://www.imagehosting.com/)
how to correct it?

hanfrunz
25th May 2009, 16:31
try this:


before=imagereader("clipboard01iky.jpg").converttorgb32()
r=before.showred().levels(0 , 1.0 , 189, 0, 255)
g=before.showgreen().levels(0 , 1.0 , 216, 0, 255)
b=before.showblue().levels(0 , 1.0 , 254, 0, 255)
after=mergergb(r,g,b)
stackhorizontal(before,after)


I got the values by using photoshops autolevels-button.

hanfrunz

thetoof
25th May 2009, 16:51
If you want to avoid colorspace conversion, try ColorYUV(off_u=x, off_v=x) or gain_u/v (never understood which is better for this usage though)

hanfrunz
25th May 2009, 17:10
If you want to avoid colorspace conversion, try ColorYUV(off_u=x, off_v=x) or gain_u/v (never understood which is better for this usage though)

reasonable color correction in Y'CbCr colorspace is nearly impossible. RGB is the way to go.

thetoof
25th May 2009, 17:17
Good point