User Tools

Site Tools


isp:automatic_exposure

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
isp:automatic_exposure [2018/06/15 01:02]
Igor Yefmov
isp:automatic_exposure [2018/06/15 01:33] (current)
Igor Yefmov [Decide on action to take]
Line 70: Line 70:
 Once we have the above two factors figured out the decision tree looks as follows: Once we have the above two factors figured out the decision tree looks as follows:
 <code cpp> <code cpp>
-enum class ExpCorrAction{STAYINCDEC};+enum class ExpCorrAction{stayincdec};
 ExpCorrAction _needExpCorrection(int _right, double _adjY){ ExpCorrAction _needExpCorrection(int _right, double _adjY){
-    if(_right > 60 && _adjY < 0.97){ +    if(_right > 60 && _adjY < 1){ 
-        return ExpCorrAction::​DEC;  // there are pixels at level 100+ and we were asked to dim the image+        return ExpCorrAction::​dec;  // there are pixels at level 100+ and we were asked to dim the image
     }     }
     if(_right >= 250 && _adjY <= 1){     if(_right >= 250 && _adjY <= 1){
-        return ExpCorrAction::​DEC;  // there are more overexposed pixels than the threshold and dimming the image+        return ExpCorrAction::​dec;  // there are more overexposed pixels than the threshold and dimming the image
     }     }
-    if(_right < 240 && _adjY > 1.2){ +    if(_right < 240 && _adjY > 1){ 
-        return ExpCorrAction::​INC;  // there'​s room to grow and asked to increase brightness+        return ExpCorrAction::​inc;  // there'​s room to grow and asked to increase brightness
     }     }
-    return ExpCorrAction::​STAY;+    return ExpCorrAction::​stay;
 } }
 </​code>​ </​code>​
/home/adminsub2r/public_html/dokuwiki/data/pages/isp/automatic_exposure.txt · Last modified: 2018/06/15 01:33 by Igor Yefmov