Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Math question - modulo arithmetics

Status
Not open for further replies.

rakko

Full Member level 4
Full Member level 4
Joined
Jun 1, 2001
Messages
233
Helped
10
Reputation
20
Reaction score
6
Trophy points
1,298
Location
mozambic
Activity points
2,065
Math question

I can't figure out how to go from the 1st 3 sets of equations to the 2nd sets. The equations are appearantly equal and I believe its some sort of modulo arithmetic. Can some guru explain how they did the conversion.....thanks.

Y = 0.299R + 0.587G + 0.114B
Cr = 0.713*(R - Y)
Cb = 0.565*(B - Y)

Is same As:
Y = 0x132 * R + 0x259 * G + 0x074 * B
Cr = (R >> 1) - 0x1AD * G - 0x053 * B
Cb = (B >> 1) - 0x0AD * R - 0x153 * G

0x = hexadecimal numbers
>> = shift right = divide by 2.
 

Math question

Consider a scale factor of 2^-10 for the integer coefficient respectively a >> 10 shift for the multiply result.
 

    rakko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top