Corrected YUV coefficient and gamma function.
Added homogenious lookup range