473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

colorsys: RGB to YIQ transform matrix

In colorsys.rgb_to_yiq, the matrix of the linear transformation used is

.30 .59 .11
.60 -.28 -.32
.21 -.52 .31

The places I checked on the Internet use

.299 .587 .114
.596 -.275 -.321
.2.1 -.523 .311

Why does colorsys use a 2 decimal place wersion of the array? What is
the actual definition of the RGB to YIQ transform?

Jul 18 '05 #1
2 4628
Edward C. Jones wrote:
In colorsys.rgb_to_yiq, the matrix of the linear transformation used is

.30 .59 .11
.60 -.28 -.32
.21 -.52 .31

The places I checked on the Internet use

.299 .587 .114
.596 -.275 -.321
.2.1 -.523 .311

Why does colorsys use a 2 decimal place wersion of the array?
Pass
What is
the actual definition of the RGB to YIQ transform?


A good place to start is here,

http://www.poynton.com/ColorFAQ.html

which used to contains details of RGB->YIQ and much much more on color
space transforms.

Dave
Jul 18 '05 #2
On Mon, 10 Nov 2003 22:53:58 -0500,
Edward C. Jones <ed******@erols.com> wrote:
Why does colorsys use a 2 decimal place wersion of the array? What is
the actual definition of the RGB to YIQ transform?


I'll wager there's no technical reason. Maybe whoever wrote the module
used a reference that only quoted the matrix to two places. You could submit
a patch on SourceForge to correct this.

(Hm, looks like there's no test suite for the module. That would be worth
fixing.)

--amk
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Johannes Ahl-mann | last post by:
hi, i've been looking all around the net (google is my friend ;-) for a module to apply fourier transformations on images. the different ones in numerical python and scientific python seem all...
6
by: Ben Ingram | last post by:
Hi all, I am writing a template matrix class in which the template parameters are the number of rows and number of columns. There are a number of reasons why this is an appropriate tradeoff for...
4
by: SC | last post by:
I couldn't write a program that make fourier transform in one and two dimens in C++. I couldn't solve correctly determinant of 3*3 matrix ic C++ too. Can you help me about that?? Thanks!
4
by: Dean Card | last post by:
Okay, so here is the situation. I have need to do some on-the-fly image creation. I have everything working great except for the last part of it, applying a perspective type transform to the...
6
by: Chris Roth | last post by:
I'm just starting out using the algorithms in c++ std library. I have a vector of vectors (v) and want to get a slice at some index. ex. If v held two vectors, v1 and v2: v1 = 1 2 3 4 5 6 v2 =...
2
by: DarrenWeber | last post by:
Below is a module (matrix.py) with a class to implement some basic matrix operations on a 2D list. Some things puzzle me about the best way to do this (please don't refer to scipy, numpy and...
0
by: DarrenWeber | last post by:
# Copyright (C) 2007 Darren Lee Weber # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free...
2
by: 9703139597 | last post by:
Write a program to find the minimum penalty required to transform a given m x n array of characters to another given m x n array of characters. The penalty for exchanging one character with another...
0
by: 249740 | last post by:
Write a program to find the minimum penalty required to transform a given m x n array of characters to another given m x n array of characters. The penalty for exchanging one character with another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.