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
Next revision
Previous revision
isp:vibrancy [2019/05/09 00:24]
Igor Yefmov [Implementation overview (HSL color space)]
isp:vibrancy [2019/06/04 22:04]
Igor Yefmov [Implementation overview (HSL color space)]
Line 88: Line 88:
 The scale (boost) multiplier therefore depends on the vibrancy factor and the pixel'​s saturation: The scale (boost) multiplier therefore depends on the vibrancy factor and the pixel'​s saturation:
 \[ \[
-scale = 1 + \frac{100 - saturation}{100} * vibrancy \\+scale = 1 + \frac{100 - saturation}{100} * (vibrancy-1) \\
 vibrancy \in [0..1]\\ vibrancy \in [0..1]\\
 saturation \in [0..100]\% saturation \in [0..100]\%
 \] \]
 <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