User Tools

Site Tools


isp:vibrancy

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
isp:vibrancy [2019/06/04 22:04]
Igor Yefmov [Implementation overview (HSL color space)]
isp:vibrancy [2019/06/04 22:04] (current)
Igor Yefmov [Implementation overview (HSL color space)]
Line 93: Line 93:
 \] \]
 <code c++>​double scale(int _s, double _vib){ // _s is in range [0..100]% <code c++>​double scale(int _s, double _vib){ // _s is in range [0..100]%
-  return 1. + (100 - _s) / 100. * _vib;+  return 1. + (100 - _s) / 100. * (_vib - 1);
 }</​code>​ }</​code>​
 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:
/home/adminsub2r/public_html/dokuwiki/data/pages/isp/vibrancy.txt · Last modified: 2019/06/04 22:04 by Igor Yefmov