Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
isp:vibrancy [2019/06/04 22:04] – [Implementation overview (HSL color space)] Igor Yefmov | isp:vibrancy [2019/06/04 22:04] – [Implementation overview (HSL color space)] Igor Yefmov | ||
---|---|---|---|
Line 93: | Line 93: | ||
\] | \] | ||
<code c++> | <code c++> | ||
- | return 1. + (100 - _s) / 100. * _vib; | + | return 1. + (100 - _s) / 100. * (_vib - 1); |
}</ | }</ | ||
Once the scale (boost) value is calculated - just apply it to the pixels: | Once the scale (boost) value is calculated - just apply it to the pixels: |