Comparison of YIQ and YCbCr

8 views
Skip to first unread message

Mihai Cartoaje

unread,
May 9, 2009, 8:10:02 AM5/9/09
to media-...@googlegroups.com
I designed a lossless YIQ color transform that requires 2 or 5
multiplications. It is like this:

R -= B
B += R >> 1
B -= G
G += B >> 1
G += round(- (0.5 - Kb - Kr) * B + (Kr - Kb) * R / 2.0)
B -= round(((1 - cos(45 - theta)) / sin(45 - theta)) * R)
R += round(sin(45 - theta) * B)
B -= round((((1 - cos(45 - theta)) / sin(45 - theta)) - sin(45 -
theta) * cos(45 - theta) / (4 - sin(45 - theta) * sin(45 - theta))) *
R)
Y = G
I = R
Q = B

Patent pending. The attached files are:

Original of the Majandra image
YCbCr 4:1:1
YCbCr 2:1:1
YIQ 4:2:1 with a rotation of 33 degrees
YIQ 4:2:1 with a rotation of 45 degrees

The ratios are the quantizers.

The image transform used for these images is a novel transform
described on my website:
http://www.geocities.com/repstsb/index.html

Majandra.png

Mihai Cartoaje

unread,
May 9, 2009, 8:15:11 AM5/9/09
to media-...@googlegroups.com
The second and third images.
Majandra50000YCbCr411.png
Majandra50000YCbCr211.png

Mihai Cartoaje

unread,
May 9, 2009, 8:17:42 AM5/9/09
to media-...@googlegroups.com
The fourth and fifth images.
Majandra50000YIQ33421.png
Majandra50000YIQ45421.png
Reply all
Reply to author
Forward
0 new messages