diff options
Diffstat (limited to 'meowpp/colors/!readme.asciidoc')
-rw-r--r-- | meowpp/colors/!readme.asciidoc | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/meowpp/colors/!readme.asciidoc b/meowpp/colors/!readme.asciidoc new file mode 100644 index 0000000..28b097a --- /dev/null +++ b/meowpp/colors/!readme.asciidoc @@ -0,0 +1,78 @@ + + +一些 *color space* 以及這些space的 *transformate function* 都放在這資料夾下 + +[NOTE] +目前transformation function的準確率還很低, 有待以後加強 + +===== Color3_Space.h + +`class Color3_Space<T>` *Channel Number = 3* 的 Color Space 的共通 *Base class* + +===== RGB_Space.h + +Channel分別是 + +* Red +* Green +* Blue + +.Classes +* `meow::RGBi_Space` 用 'int' 存資料, 每個channel數值合法範圍是 *0~255* +* `meow::RGBf_Space` 用 'double' 存資料, 每個channel數值合法範圍是 *0.0~1.0* + +.Functions +* `meow::colorTransformation(in, *out)` for +** RGBi_Space <--> RGBf_Space + +===== YUV_Space.h + +Channel分別是 + +* Y 明度 +* U 色度 +* V 濃度 + +.Classes +* `meow::YUVf_Space` 用 'double' 存資料, 每個channel數值合法範圍是 *0~1.0* + +.Functions +* `meow::colorTransformation(in, *out)` for +** YUVf_Space <--> RGBi_Space +** YUVf_Space <--> RGBf_Space + +===== HSL_Space.h + +Channel分別是 + +* H 色調 +* S 飽和度 +* L 亮度 + +.Classes +* `meow::HSLf_Space` 用 'double' 存資料, 每個channel數值合法範圍是 *0~1.0* + +.Functions +* `meow::colorTransformation(in, *out)` for +** HSLf_Space <--> RGBi_Space +** HSLf_Space <--> RGBf_Space +** HSLf_Space <--> YUVf_Space + +===== HSV_Space.h + +Channel分別是 + +* H 色調 +* S 飽和度 +* V 亮度 + +.Classes +* `meow::HSVf_Space` 用 'double' 存資料, 每個channel數值合法範圍是 *0~1.0* + +.Functions +* `meow::colorTransformation(in, *out)` for +** HSVf_Space <--> RGBi_Space +** HSVf_Space <--> RGBf_Space +** HSVf_Space <--> YUVf_Space +** HSVf_Space <--> HSLf_Space + |