What coefficients does Krita use for YUV/YCbCr?

Cyrille Berger cberger at cberger.net
Wed May 23 22:57:19 CEST 2007


Hi

On Wednesday 23 May 2007, Matthew Woehlke wrote:
> I don't know if anyone follows k-c-d, but I'm working on a color
> blending function for kdelibs that will support HSY color space (like
> HSL but with luma as in YUV/YCbCr color spaces). Alas, there are two
> common sets of coefficients used to calculate Y:
>
> 601: Y' = 0.299  R' + 0.587  G' + 0.114  B'
> 709: Y' = 0.2126 R' + 0.7152 G' + 0.0722 B'
>
> I figure this is probably the best place to ask; which would be better
> to use in kdelibs (or should I offer /both/)? Which does Krita use?

Krita 1.6 is hard coded to use 601. While for 2.0 the plan is to allow use any 
coefficients, even non common :)

601 coefficients are the default for TIFF. I guess that for your use any of 
the coeffcients are good enought anyway.

-- 
Cyrille Berger


More information about the kimageshop mailing list