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 revisionBoth sides next revision
isp:sample_awb_implementation_in_c [2018/06/15 01:09] – [Constructor AWB::AWB] Igor Yefmovisp:sample_awb_implementation_in_c [2018/06/16 03:40] – [AWB::_resetRed()] Igor Yefmov
Line 194: Line 194:
 <code c++>void AWB::_resetRed() <code c++>void AWB::_resetRed()
 { {
-    const int gainG = m_ov[Val::GAIN_G]; +    const int gainG = m_ov[Val::gain_g]; 
-    const int gainR = m_ov[Val::GAIN_R];+    const int gainR = m_ov[Val::gain_r];
     if(gainR > gainG){     if(gainR > gainG){
         const auto diff = (gainG - gainR) * 5 / 8;  // 62.5% closer to green gain value         const auto diff = (gainG - gainR) * 5 / 8;  // 62.5% closer to green gain value
-        m_ov[Val::GAIN_R] = gainR + diff;+        m_ov[Val::gain_r] = gainR + diff;
     }     }
 }</code> }</code>

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