niiyan/2005-08-25 のバックアップソース(No.1)

*** [[ColourLike, 25 Aug 05:http://forum.doom9.org/showthread.php?t=96308&page=2#post703508]] [#z7b8f1fa]

-変更点
--バグ修正
>[[Doom9's Forum - Filter: ColourLike:http://forum.doom9.org/showthread.php?t=96308&page=2#post703508]]
>I forgot to centre the polar colour space at (U=128, V=128) rather than (U=0, V=0)... 

--SaturationGammaフィルタの追加
---SaturationGammaのコンセプト
>[[Doom9's Forum - Filter: ColourLike:http://forum.doom9.org/showthread.php?t=96308&page=2#post703508]]
>A normal gamma operation can brighten or darken midtones while (approximately) leaving highlights and shadows alone. The saturation Gamma can increase or decrease the saturation of areas with medium saturation, while leaving greys and very saturated areas alone.

---書式
 SaturationGamma(clip, float gamma, float fixed = 127.0)

---fixedパラメータについて
>[[Doom9's Forum - Filter: ColourLike:http://forum.doom9.org/showthread.php?t=96308&page=2#post703508]]
>The fixed parameter gives a "very saturated" saturation level [measured as a distance from (128,128)] that will be left alone by the function... but it will work fine if you leave this number at default.