Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
isp:automatic_exposure [2018/06/15 01:02] – Igor Yefmov | isp:automatic_exposure [2018/06/15 01:33] – [Decide on action to take] Igor Yefmov | ||
---|---|---|---|
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{STAY, INC, DEC}; | + | enum class ExpCorrAction{stay, inc, dec}; |
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:: | + | return ExpCorrAction:: |
} | } | ||
if(_right >= 250 && _adjY <= 1){ | if(_right >= 250 && _adjY <= 1){ | ||
- | return ExpCorrAction:: | + | return ExpCorrAction:: |
} | } | ||
- | if(_right < 240 && _adjY > 1.2){ | + | if(_right < 240 && _adjY > 1){ |
- | return ExpCorrAction:: | + | return ExpCorrAction:: |
} | } | ||
- | return ExpCorrAction:: | + | return ExpCorrAction:: |
} | } | ||
</ | </ |