Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
isp:contrast [2019/07/13 15:17] – Igor Yefmov | isp:contrast [2019/07/17 23:45] – Igor Yefmov | ||
---|---|---|---|
Line 11: | Line 11: | ||
\[ | \[ | ||
luma = (luma - 50) * contrast^2 + 50 \\ | luma = (luma - 50) * contrast^2 + 50 \\ | ||
- | luma \in [0..100]%% | + | luma \in [0..100] \\ |
+ | contrast \in ]0..2.0]%% | ||
\] | \] | ||
<code c++>// pseudo-code | <code c++>// pseudo-code | ||
void contrast(/ | void contrast(/ | ||
- | for(const & pixel: image){ | + | for(auto & pixel: image){ |
pixel.luma = std:: | pixel.luma = std:: | ||
} | } | ||
}</ | }</ | ||