User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
code:fx3_hvci_and_fpga_i_c_commands [2020/05/14 22:05] – external edit 127.0.0.1code:fx3_hvci_and_fpga_i_c_commands [2020/12/14 20:32] – [0xB0-0xCF - Color Correction Matrix (a.k.a. CCM or CMX)] Igor Yefmov
Line 96: Line 96:
 |''0'' Config not busy|Set to ''1'' while the config is not busy| |''0'' Config not busy|Set to ''1'' while the config is not busy|
  
-===== 0xB0-0xCF =====+===== 0xB0-0xCF - Color Correction Matrix (a.k.a. CCM or CMX) ===== 
 +Color Correction Matrix is often used as an "add-on" matrix during YUV->RGB conversion. In our case, since the de-bayering and RGB->YUV conversions happen literally on opposite sides of the imaging pipeline, we only use the portion of the corrections designed to compensate for the sensor's cross-talk, converting pre-debayer values \(R_0, Gr_0, Gb_0, B_0\) into \(R, Gr, Gb, B\) that are then used for conversion into RGB: 
 + 
 +\( 
 + \begin{bmatrix} R & Gr & Gb & B\end{bmatrix} 
 + = 
 + \begin{bmatrix} 
 + c_{00} & c_{01} & c_{02} & c_{03} \\ 
 + c_{10} & c_{11} & c_{12} & c_{13} \\ 
 + c_{20} & c_{21} & c_{22} & c_{23} \\ 
 + c_{30} & c_{31} & c_{32} & c_{33} 
 + \end{bmatrix} 
 + \cdot 
 + \begin{bmatrix} 
 + R_0 \\ 
 + Gr_0 \\ 
 + Gb_0 \\ 
 + B_0 
 + \end{bmatrix} 
 +\)
 ^Name ^Offset ^wIndex ^wValue ^Access type ^Byte length ^Return buffer bits ^Notes ^ ^Name ^Offset ^wIndex ^wValue ^Access type ^Byte length ^Return buffer bits ^Notes ^
 |Reserved|''0xB0''-''0xCF''| | | | | | | |Reserved|''0xB0''-''0xCF''| | | | | | |

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information