[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 132 KB, 1280x1280, CIE1931grid.jpg [View same] [iqdb] [saucenao] [google]
4701676 No.4701676 [Reply] [Original]

If I transform a RGB color into a new color space rgY where the formula for conversion was:

r = R / (R + G + B)
g = G / (R + G + B)
Y = R * 0.299 + G * 0.587 + B * 0.114

what would be the formula for converting rgY -> RGB?

>> No.4701719

bump

>> No.4701779

Come on.

I know that if you substitute Y for a simple average of the 3 channels, the conversion back is easy.

r = R / (R + G + B)
g = G / (R + G + B)
I = (R + G + B) / 3

R = 3 * r * I
G = 3 * g * I
B = 3 * (1 - r - g) * I

So, how do I do the same but when Y is a weighted average?

>> No.4701789
File: 97 KB, 418x384, 1277360528723.jpg [View same] [iqdb] [saucenao] [google]
4701789

>>4701676
Are you telling me you can't do basic kiddy algebra?

Really? How fucking old are you?

>> No.4701797

>>4701676
Step 1) Go to elementary schpp;
Step 2) Learn basic algebra
Step 3) Proffit????

>> No.4701822

>>4701789
>>4701797

Mind explaining it then, kings of 8th grade algebra.

>> No.4701868

i assume your are that dude on stack overflow right? just do it with the gaussian elimination... you have to extend the equations appropriately to be able to eleminate certain variable and yes its a fucking pain in the ass

>> No.4701886

or actually:
http://www.wolframalpha.com/input/?i=solve+r%3D+R%2F%28R%2BG%2BB%29+and+g+%3D+G%2F%28R%2BG%2BB%29+an
d+y+%3D%28R*k1%2BG*k2%2BB*k3+%29+for+R

>> No.4701908

>>4701868

Yeah, that's really no help at all. I asked how do you remove a small block Chevy engine from a car and you gave me a book all about spanners.

>>4701886

I don't see anything useful inside of that mess.

>> No.4701931

fucking equations drive me insane
prolly wrong but still writing it down:

G= y*g(r(1-g)-1) / (r (g*k3-g*k1) -((g-1)*k3 -k2*g)(r(1-g)-1))

>> No.4701943

http://www.wolframalpha.com/input/?i=solve+r%3D+R%2F%28R%2BG%2BB%29+and+g+%3D+G%2F%28R%2BG%2BB%29+an
d+y+%3D%28R*0.299%2BG*0.587%2BB*0.114%29+for+R+and+G+and+B

Seriously, what the fuck is this supposed to mean. That a conversion is impossible?

>> No.4701952
File: 13 KB, 624x255, cheese_magic.png [View same] [iqdb] [saucenao] [google]
4701952

>>4701676
I think you don't understand what you're doing. Here's the solution anyway.

>> No.4701955

>>4701931

Uh, negative on that.

>> No.4701966

>>4701952

No, that's not helpful at all.

>> No.4701972

3 equations 3 "unknowns" i think my 6th grade math teacher can help you.
good laugh though

>> No.4701985

>>4701972

It's obviously not that simple, otherwise somebody could have found the answer already.

>> No.4701978
File: 165 KB, 1024x768, 2s6v6f9.jpg [View same] [iqdb] [saucenao] [google]
4701978

>>4701676
>can't basic algebra

Are you an engineer or something?

If you delete this shitty thread, I will post the answer in the putnam thread.

NOW DELETE YOUR SHITTY THREAD!

>> No.4701989

>>4701978

see

>>4701985

You clear

>> No.4702001

Wow, dumbasses will line up to say how easy this is, and then when they actually attempt it, they haven't got shit.

>> No.4702005
File: 51 KB, 494x426, epicFAIL.jpg [View same] [iqdb] [saucenao] [google]
4702005

>>4701989
Post tits or something to make it worth MY while and I will give you the answer. This is a very very very very very very very basic problem, THAT A FUCKING MONKEY COULD DO.

>> No.4702009

>>4702005
Waiting....

>> No.4702011

>>4702005

You lie. It's not simple, and you don't have any answer worthwhile.

>> No.4702012
File: 28 KB, 358x310, 126877739536bbbb8.jpg [View same] [iqdb] [saucenao] [google]
4702012

>>4702001

>> No.4702016

>>4702012

Contribution to thread: 0

>> No.4702020

http://www.wolframalpha.com/input/?i=solve+for+R%2CG%2CB+in+r+%3D+R+%2F+%28R+%2B+G+%2B+B%29%2C+g+%3D
+G+%2F+%28R+%2B+G+%2B+B%29%2C+Y+%3D+R+*+0.299+%2B+G+*+0.587+%2B+B+*+0.114

>> No.4702028

>>4702020

Wow, congratulations. You went to the same site as me and typed in the same shit as me, and you got the same non-answer as me.

>> No.4702031
File: 106 KB, 489x400, 1293495531215.jpg [View same] [iqdb] [saucenao] [google]
4702031

>>4701676

Your parents should be fucking raped and executed for the shitty job they did rasing you.

Jesus FUCKING CHRIST! How fucking stupid are you?
1) Solve first quation for R
to obtain
R(r, G, B)
2) Plug R(r, G, B) into to second equation, then solve it for G to obtain

G(r, g, B)
3) Plug G(r, g, B) into the thrid equation, then solve for B to obtain

B(r, g, Y)
4) Plug B(r, g, Y) into G(r, g, B) to obtain
G(r, g, Y)
5) Plug B(r, g, Y) and G(r, g, Y) into R(r, G, B) to obtain
R(r, g, Y)

\thread

>> No.4702037
File: 21 KB, 636x558, 1298866656198.png [View same] [iqdb] [saucenao] [google]
4702037

>>4701676

>> No.4702038

Fine, you asshats who claimed to have the answer but don't want to share it with me because I am unworthy, then prove it.

You don't have to post the formula, just prove that you have it.

r = 0.166775244
g = 0.332899023
Y = 0.464053

R = ?
G = ?
B = ?

Have at it you wankers.

>> No.4702041

Since OP can apparently not into reading:

http://www.wolframalpha.com/input/?i=solve+for+R%2CG%2CB+in+r+%3D+R+%2F+%28R+%2B+G+%2B+B%29%2C+g+%3D
+G+%2F+%28R+%2B+G+%2B+B%29%2C+Y+%3D+R+*+0.299+%2B+G+*+0.587+%2B+B+*+0.114%2C+r%3E0%2C+g%3E0%2C+Y%3E0

>> No.4702042
File: 220 KB, 517x369, 1270858503424.jpg [View same] [iqdb] [saucenao] [google]
4702042

>>4702031
\THREAD

>> No.4702056
File: 26 KB, 396x349, 1279169203621.jpg [View same] [iqdb] [saucenao] [google]
4702056

>>4701676
OP is a pathetic excuse for a human being.

>> No.4702060

>>4702038
.256, .511, .768

>> No.4702071
File: 4 KB, 126x96, 1281830411742.jpg [View same] [iqdb] [saucenao] [google]
4702071

>>4701676
The homeless community loves when OP comes around. OP just can't get enough of disease ridden cocks! I never knew a person could love the taste of AIDS!

>> No.4702076

>>4702041

Thanks.

I got what I came for. The rest of you can fuck off.

>> No.4702084
File: 67 KB, 864x569, 1288973222843.jpg [View same] [iqdb] [saucenao] [google]
4702084

>>4701676
Stop wasting your time OP. It is obvious that you will never amount to anything. Drop out of school while you are stil young. Older men will love your tight little holes. I hope you like the taste of CUM.

>> No.4702090
File: 79 KB, 361x358, 1285824533416.jpg [View same] [iqdb] [saucenao] [google]
4702090

>>4702076
I'm too busy fucking your mom.

>> No.4702088

>>4702084

I hope you are happy alone.

>> No.4702095

>>4702090

Stay classy /sci/

>> No.4702097

>>4701676
ITT: Scientifc proof that OP is a fag