13.03.2013 Views

Software manual for use with color sensors of the Series - Silicann

Software manual for use with color sensors of the Series - Silicann

Software manual for use with color sensors of the Series - Silicann

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

User Manual<br />

PCS Sensor <strong>S<strong>of</strong>tware</strong><br />

Word 5: [Y] Green Value (Phase I)<br />

Word 6: [Z] Blue Value (Phase I)<br />

Word 7: [X] Red Value (Phase II)<br />

Word 8: [Y] Green Value (Phase II)<br />

Word 9: [Z] Blue Value (Phase II)<br />

Phase I: Light Phase / no compensation<br />

Phase II: Dark Phase<br />

Note: Ranges are 0x0000 - 0x0FFF. The values are averaged according to 0x29. 0x0000<br />

represents <strong>the</strong> darkest, 0x0FFF <strong>the</strong> brightest value.<br />

2.2.4 Sensor Correction<br />

0x30 : Set Correction Matrix Mode<br />

Send : 1 word<br />

0 : Disabled<br />

1 : Sensor Level Correction<br />

2 : Sensor Matrix Correction<br />

0x31 : Read Correction Matrix Mode<br />

Response: 1 word (like 0x30)<br />

0x32 : Set Correction Matrix<br />

Send: 9 x Fixed Point<br />

Matrix <strong>for</strong>mula:<br />

Xc = a00*R + a01*G + a02*B<br />

Yc = a10*R + a11*G + a12*B<br />

Zc = a20*R + a21*G + a22*B<br />

Send order:<br />

a00, a01, a02, a10, a11, a12, a20, a21, a22<br />

Note: The values <strong>of</strong> <strong>the</strong> correction matrix are only limited <strong>with</strong>in <strong>the</strong> range <strong>of</strong> <strong>the</strong> fixed point<br />

numbers, but to let <strong>the</strong> system per<strong>for</strong>m reasonable <strong>color</strong> trans<strong>for</strong>mations, <strong>the</strong> result <strong>of</strong> each<br />

channel should be between 0.0-1.0. The settings can be verified by using command 0x3F.<br />

0x33 : Read Correction Matrix<br />

Response: 9 x Fixed Point (like 0x32)<br />

0x3F : Read Corrected Channels<br />

Response: 3 x Fixed Point<br />

Fixed Point 1: Corrected X Channel<br />

Fixed Point 2: Corrected Y Channel<br />

Fixed Point 3: Corrected Z Channel<br />

Rev. 5.1 (2009-01-28) Subject to change<br />

22-3061-01 - 34 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!