MCPcopy Create free account
hub / github.com/BBuf/Image-processing-algorithm / ChangeColor

Function ChangeColor

ImageDataIncrease.cpp:110–153  ·  view source on GitHub ↗

4. 调整图像饱和度(PhotoShop中的饱和度调节) (1) 计算每个像素点三基色最小值和最大值 (2) delta为2值之差/255,如果二值之差为0不操作 (3)value为两值之和 (4)RGB图像空间转化为HSL(H色调,S饱和度,L亮度) L = value/2 如果L<0.5,则S=delta/value 否则S=delta/(2-value) Increment为饱和度,正值为增加饱和度,负值为降低饱和度,取值为(-1,1) (5)根据不同的公式得到新的rgb值

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected