diff options
Diffstat (limited to 'doc/html/HSV__Space_8h_source.html')
-rw-r--r-- | doc/html/HSV__Space_8h_source.html | 176 |
1 files changed, 90 insertions, 86 deletions
diff --git a/doc/html/HSV__Space_8h_source.html b/doc/html/HSV__Space_8h_source.html index 69df343..078e193 100644 --- a/doc/html/HSV__Space_8h_source.html +++ b/doc/html/HSV__Space_8h_source.html @@ -28,7 +28,7 @@ <td id="projectlogo"><img alt="Logo" src="logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">Templates -- Meow -  <span id="projectnumber">204.13.18</span> +  <span id="projectnumber">1.2.9</span> </div> <div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div> </td> @@ -133,88 +133,92 @@ $(document).ready(function(){initNavTree('HSV__Space_8h_source.html','');}); <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> };</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> -<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="namespacemeow.html#a1591a113b022322f1119894a83a56625"> 86</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> <span class="keyword">const</span>& rgb, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">double</span> r = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#aee2f300ff0ae724890d3d80d0cb7cbc3">rMin</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#af473ccd4b8202097640ba9f19428caef">rMax</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a2e158eb7f0a94047b23872b7b346e7b9">r</a>());</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">double</span> g = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#aeb0cd2d681af6a70861ff371bf596e17">gMin</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a65d8088fb8b755f0b3f173dcda552789">gMax</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#ad25036799ca38983cdb74ed6b4245d51">g</a>());</div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">double</span> b = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a130bbee98fdd279a415e18aa0ca2f13c">bMin</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a029c3bd52ae818462558742dc2be0904">bMax</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a8a0a6daacecfbd1769cbdb321988ab88">b</a>());</div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">double</span> mx = std::max(std::max(r, g), b);</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">double</span> mn = std::min(std::min(r, g), b);</div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">double</span> h, s, v;</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span> (mx == mn ) h = 0;</div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(mx == r && g >= b) h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (g-b) / (mx-mn);</div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(mx == r && g < b) h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (g-b) / (mx-mn) + <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a> * 2.0;</div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(mx == g ) h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (b-r) / (mx-mn) + <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0*2.0;</div> -<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">else</span> h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (r-g) / (mx-mn) + <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0*4.0;</div> -<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">if</span>(mx == 0) s = 0;</div> -<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">else</span> s = 1 - mn / mx;</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  v = mx;</div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  hsv-><a class="code" href="classmeow_1_1HSVf__Space.html#a234e37a7fe30be5d6c99b41d99d67016">h</a>(h);</div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  hsv-><a class="code" href="classmeow_1_1HSVf__Space.html#a9fa2946d82a60f47487364bbbbfb824f">s</a>(s);</div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  hsv-><a class="code" href="classmeow_1_1HSVf__Space.html#ae8ffcdef1e7978832081db18ebedeffa">v</a>(v);</div> -<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }</div> -<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div> -<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="namespacemeow.html#ad01fb20ad0ae3932e408c06ad80f7b1e"> 109</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <span class="keyword">const</span>& yuv, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>( yuv, &tmp);</div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(*tmp, hsv);</div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> -<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="namespacemeow.html#a19e830f03459a25435ff963551772e74"> 118</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1HSLf__Space.html">HSLf_Space</a> <span class="keyword">const</span>& hsl, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> -<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> -<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>( hsl, &tmp);</div> -<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(*tmp, hsv);</div> -<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div> -<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="namespacemeow.html#a2f627a58a3394af709ddc8114b4b5286"> 127</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a>* rgb) {</div> -<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">double</span> h = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a55d7dc460276eedec803905bc896e3f4">hMin</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a9c477bb3f4bd4a6e275454b5c17f70af">hMax</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a234e37a7fe30be5d6c99b41d99d67016">h</a>()) * 360;</div> -<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordtype">double</span> s = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a042f969c34c4b708ef7c9ed2f914825b">sMin</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a2aedcabd4c079b5662502642c919b974">sMax</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a9fa2946d82a60f47487364bbbbfb824f">s</a>());</div> -<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">double</span> v = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#afb8087a590e96a0da95793acf5d0228e">vMin</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#ad603b398c6e50a238a87c0aad890ab2c">vMax</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#ae8ffcdef1e7978832081db18ebedeffa">v</a>());</div> -<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordtype">int</span> hi = (<a class="code" href="classint.html">int</a>)h / 60 % 6;</div> -<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordtype">double</span> f = h / 60.0 - hi;</div> -<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">double</span> p = v * (1 - s);</div> -<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">double</span> q = v * (1 - f * s);</div> -<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">double</span> t = v * (1 - (1 - f) * s);</div> -<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordtype">double</span> r, g, b;</div> -<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (hi == 0){ r = v; g = t; b = p; }</div> -<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 1){ r = q; g = v; b = p; }</div> -<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 2){ r = p; g = v; b = t; }</div> -<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 3){ r = p; g = q; b = v; }</div> -<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 4){ r = t; g = p; b = v; }</div> -<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">else</span> { r = v; g = p; b = q; }</div> -<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a2e158eb7f0a94047b23872b7b346e7b9">r</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#aee2f300ff0ae724890d3d80d0cb7cbc3">rMin</a>(), rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#af473ccd4b8202097640ba9f19428caef">rMax</a>(), r));</div> -<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#ad25036799ca38983cdb74ed6b4245d51">g</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#aeb0cd2d681af6a70861ff371bf596e17">gMin</a>(), rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a65d8088fb8b755f0b3f173dcda552789">gMax</a>(), g));</div> -<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a8a0a6daacecfbd1769cbdb321988ab88">b</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a130bbee98fdd279a415e18aa0ca2f13c">bMin</a>(), rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a029c3bd52ae818462558742dc2be0904">bMax</a>(), b));</div> -<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> }</div> -<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div> -<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="namespacemeow.html#a930aec4a586b79b076e64541f3a96cc7"> 151</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a>* yuv) {</div> -<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> -<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>( hsv, &tmp);</div> -<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(*tmp, yuv);</div> -<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> }</div> -<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div> -<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="namespacemeow.html#ae5a2c4f9f20fe94d8fcd378a86e05260"> 160</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1HSLf__Space.html">HSLf_Space</a>* hsl) {</div> -<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> -<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>( hsv, &tmp);</div> -<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(*tmp, hsl);</div> -<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> }</div> -<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div> -<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="namespacemeow.html#a303120584f2d7e474096da63bec4cdf5"> 169</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1RGBi__Space.html">RGBi_Space</a>* rgb) {</div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> -<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(hsv, &tmp);</div> -<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  rgb-><a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(tmp);</div> -<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div> -<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div> -<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div> -<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="namespacemeow.html#a0239dc74535f528644a22e3e86e5221c"> 179</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(<a class="code" href="classmeow_1_1RGBi__Space.html">RGBi_Space</a> <span class="keyword">const</span>& rgb, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> -<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> -<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  tmp.<a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(rgb);</div> -<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(rgb, hsv);</div> -<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div> -<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div> -<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> } <span class="comment">// meow</span></div> -<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor">#endif // colors_HSV_Space_H__</span></div> +<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="namespacemeow.html#a7611fd0d38c6dd2aa3eea58a96ccb2b7"> 86</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& in, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* out) {</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  *out = in;</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> }</div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="namespacemeow.html#a1591a113b022322f1119894a83a56625"> 93</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> <span class="keyword">const</span>& rgb, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">double</span> r = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#aee2f300ff0ae724890d3d80d0cb7cbc3">rMin</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#af473ccd4b8202097640ba9f19428caef">rMax</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a2e158eb7f0a94047b23872b7b346e7b9">r</a>());</div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">double</span> g = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#aeb0cd2d681af6a70861ff371bf596e17">gMin</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a65d8088fb8b755f0b3f173dcda552789">gMax</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#ad25036799ca38983cdb74ed6b4245d51">g</a>());</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">double</span> b = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a130bbee98fdd279a415e18aa0ca2f13c">bMin</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a029c3bd52ae818462558742dc2be0904">bMax</a>(), rgb.<a class="code" href="classmeow_1_1RGBf__Space.html#a8a0a6daacecfbd1769cbdb321988ab88">b</a>());</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">double</span> mx = std::max(std::max(r, g), b);</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">double</span> mn = std::min(std::min(r, g), b);</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">double</span> h, s, v;</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">if</span> (mx == mn ) h = 0;</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(mx == r && g >= b) h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (g-b) / (mx-mn);</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(mx == r && g < b) h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (g-b) / (mx-mn) + <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a> * 2.0;</div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(mx == g ) h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (b-r) / (mx-mn) + <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0*2.0;</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">else</span> h = <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0 * (r-g) / (mx-mn) + <a class="code" href="namespacemeow.html#aa86d5920087a4e73078b759bc3996f76">PI</a>/3.0*4.0;</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">if</span>(mx == 0) s = 0;</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">else</span> s = 1 - mn / mx;</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  v = mx;</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  hsv-><a class="code" href="classmeow_1_1HSVf__Space.html#a234e37a7fe30be5d6c99b41d99d67016">h</a>(h);</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  hsv-><a class="code" href="classmeow_1_1HSVf__Space.html#a9fa2946d82a60f47487364bbbbfb824f">s</a>(s);</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  hsv-><a class="code" href="classmeow_1_1HSVf__Space.html#ae8ffcdef1e7978832081db18ebedeffa">v</a>(v);</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> }</div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> +<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="namespacemeow.html#ad01fb20ad0ae3932e408c06ad80f7b1e"> 116</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <span class="keyword">const</span>& yuv, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>( yuv, &tmp);</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(*tmp, hsv);</div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> }</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div> +<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="namespacemeow.html#a19e830f03459a25435ff963551772e74"> 125</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1HSLf__Space.html">HSLf_Space</a> <span class="keyword">const</span>& hsl, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>( hsl, &tmp);</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(*tmp, hsv);</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> +<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="namespacemeow.html#a2f627a58a3394af709ddc8114b4b5286"> 134</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a>* rgb) {</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">double</span> h = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a55d7dc460276eedec803905bc896e3f4">hMin</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a9c477bb3f4bd4a6e275454b5c17f70af">hMax</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a234e37a7fe30be5d6c99b41d99d67016">h</a>()) * 360;</div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordtype">double</span> s = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a042f969c34c4b708ef7c9ed2f914825b">sMin</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a2aedcabd4c079b5662502642c919b974">sMax</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#a9fa2946d82a60f47487364bbbbfb824f">s</a>());</div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">double</span> v = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#afb8087a590e96a0da95793acf5d0228e">vMin</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#ad603b398c6e50a238a87c0aad890ab2c">vMax</a>(), hsv.<a class="code" href="classmeow_1_1HSVf__Space.html#ae8ffcdef1e7978832081db18ebedeffa">v</a>());</div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">int</span> hi = (<a class="code" href="classint.html">int</a>)h / 60 % 6;</div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">double</span> f = h / 60.0 - hi;</div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordtype">double</span> p = v * (1 - s);</div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">double</span> q = v * (1 - f * s);</div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">double</span> t = v * (1 - (1 - f) * s);</div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">double</span> r, g, b;</div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (hi == 0){ r = v; g = t; b = p; }</div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 1){ r = q; g = v; b = p; }</div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 2){ r = p; g = v; b = t; }</div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 3){ r = p; g = q; b = v; }</div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span>(hi == 4){ r = t; g = p; b = v; }</div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">else</span> { r = v; g = p; b = q; }</div> +<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a2e158eb7f0a94047b23872b7b346e7b9">r</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#aee2f300ff0ae724890d3d80d0cb7cbc3">rMin</a>(), rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#af473ccd4b8202097640ba9f19428caef">rMax</a>(), r));</div> +<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#ad25036799ca38983cdb74ed6b4245d51">g</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#aeb0cd2d681af6a70861ff371bf596e17">gMin</a>(), rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a65d8088fb8b755f0b3f173dcda552789">gMax</a>(), g));</div> +<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a8a0a6daacecfbd1769cbdb321988ab88">b</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a130bbee98fdd279a415e18aa0ca2f13c">bMin</a>(), rgb-><a class="code" href="classmeow_1_1RGBf__Space.html#a029c3bd52ae818462558742dc2be0904">bMax</a>(), b));</div> +<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> }</div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div> +<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="namespacemeow.html#a930aec4a586b79b076e64541f3a96cc7"> 158</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a>* yuv) {</div> +<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> +<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>( hsv, &tmp);</div> +<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(*tmp, yuv);</div> +<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> }</div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div> +<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="namespacemeow.html#ae5a2c4f9f20fe94d8fcd378a86e05260"> 167</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1HSLf__Space.html">HSLf_Space</a>* hsl) {</div> +<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> +<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>( hsv, &tmp);</div> +<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(*tmp, hsl);</div> +<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> }</div> +<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> +<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="namespacemeow.html#a303120584f2d7e474096da63bec4cdf5"> 176</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a> <span class="keyword">const</span>& hsv, <a class="code" href="classmeow_1_1RGBi__Space.html">RGBi_Space</a>* rgb) {</div> +<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> +<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(hsv, &tmp);</div> +<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  rgb-><a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(tmp);</div> +<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div> +<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div> +<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="namespacemeow.html#a0239dc74535f528644a22e3e86e5221c"> 186</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(<a class="code" href="classmeow_1_1RGBi__Space.html">RGBi_Space</a> <span class="keyword">const</span>& rgb, <a class="code" href="classmeow_1_1HSVf__Space.html">HSVf_Space</a>* hsv) {</div> +<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div> +<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  tmp.<a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(rgb);</div> +<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <a class="code" href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">colorTransformate</a>(rgb, hsv);</div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> }</div> +<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div> +<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> } <span class="comment">// meow</span></div> +<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div> +<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div> +<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="preprocessor">#endif // colors_HSV_Space_H__</span></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_aa3a78aa9771124051ddeb73ecc0ae3c2"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#aa3a78aa9771124051ddeb73ecc0ae3c2">meow::HSVf_Space::sGet</a></div><div class="ttdeci">double & sGet()</div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00060">HSV_Space.h:60</a></div></div> <div class="ttc" id="namespacemeow_html_aebe1ad335556790c578c4cf7836fd9ca"><div class="ttname"><a href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">meow::normalize</a></div><div class="ttdeci">T normalize(T lower, T upper, T value)</div><div class="ttdoc">(value-lower)/(upper-lower) </div><div class="ttdef"><b>Definition:</b> <a href="math_2utility_8h_source.html#l00027">utility.h:27</a></div></div> <div class="ttc" id="classmeow_1_1RGBf__Space_html_aee2f300ff0ae724890d3d80d0cb7cbc3"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#aee2f300ff0ae724890d3d80d0cb7cbc3">meow::RGBf_Space::rMin</a></div><div class="ttdeci">double const & rMin() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00106">RGB_Space.h:106</a></div></div> @@ -223,7 +227,6 @@ $(document).ready(function(){initNavTree('HSV__Space_8h_source.html','');}); <div class="ttc" id="RGB__Space_8h_html"><div class="ttname"><a href="RGB__Space_8h.html">RGB_Space.h</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_aa27859136b4695a1923b0451eabb6e74"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#aa27859136b4695a1923b0451eabb6e74">meow::HSVf_Space::HSVf_Space</a></div><div class="ttdeci">HSVf_Space()</div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00025">HSV_Space.h:25</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_a96d429221b88c5e568813d8a42c49af0"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#a96d429221b88c5e568813d8a42c49af0">meow::HSVf_Space::operator=</a></div><div class="ttdeci">HSVf_Space & operator=(HSVf_Space const &b)</div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00062">HSV_Space.h:62</a></div></div> -<div class="ttc" id="namespacemeow_html_af9ab85cd87a9f843e710657188f4c601"><div class="ttname"><a href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">meow::colorTransformate</a></div><div class="ttdeci">void colorTransformate(RGBf_Space const &rgb, HSLf_Space *hsl)</div><div class="ttdoc">RGBf_Space to HSLf_Space </div><div class="ttdef"><b>Definition:</b> <a href="HSL__Space_8h_source.html#l00085">HSL_Space.h:85</a></div></div> <div class="ttc" id="classmeow_1_1RGBf__Space_html"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html">meow::RGBf_Space</a></div><div class="ttdoc">以浮點數Red, Green, Blue 三個值所組成的色彩空間 </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00086">RGB_Space.h:86</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_a8b92ab84b9fe888ee6f06d55b4368cb3"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#a8b92ab84b9fe888ee6f06d55b4368cb3">meow::HSVf_Space::HSVf_Space</a></div><div class="ttdeci">HSVf_Space(double c)</div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00029">HSV_Space.h:29</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_a662428fed0f4f2beddc16d5af52b228c"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#a662428fed0f4f2beddc16d5af52b228c">meow::HSVf_Space::~HSVf_Space</a></div><div class="ttdeci">~HSVf_Space()</div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00040">HSV_Space.h:40</a></div></div> @@ -232,6 +235,7 @@ $(document).ready(function(){initNavTree('HSV__Space_8h_source.html','');}); <div class="ttc" id="classmeow_1_1Color3__Space_html_ac2efb0be959fc60f786bdcdc8a1fd8b2"><div class="ttname"><a href="classmeow_1_1Color3__Space.html#ac2efb0be959fc60f786bdcdc8a1fd8b2">meow::Color3_Space< double >::valGet</a></div><div class="ttdeci">double & valGet(size_t id)</div><div class="ttdoc">Get the non-constant reference of value of the i -th channel. </div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00139">Color3_Space.h:139</a></div></div> <div class="ttc" id="namespacemeow_html_af95cfca15ad7a51ed4d07b06e1296080"><div class="ttname"><a href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">meow::denormalize</a></div><div class="ttdeci">T denormalize(T lower, T upper, T _ratio)</div><div class="ttdoc">(lower+_ratio*(upper-lower)) </div><div class="ttdef"><b>Definition:</b> <a href="math_2utility_8h_source.html#l00035">utility.h:35</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_a042f969c34c4b708ef7c9ed2f914825b"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#a042f969c34c4b708ef7c9ed2f914825b">meow::HSVf_Space::sMin</a></div><div class="ttdeci">double const & sMin() const </div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00044">HSV_Space.h:44</a></div></div> +<div class="ttc" id="namespacemeow_html_a096556e550d6407f2c7f9b9507eab5be"><div class="ttname"><a href="namespacemeow.html#a096556e550d6407f2c7f9b9507eab5be">meow::colorTransformate</a></div><div class="ttdeci">void colorTransformate(HSLf_Space const &in, HSLf_Space *out)</div><div class="ttdoc">HSLf_Space to HSLf_Space </div><div class="ttdef"><b>Definition:</b> <a href="HSL__Space_8h_source.html#l00085">HSL_Space.h:85</a></div></div> <div class="ttc" id="classmeow_1_1RGBf__Space_html_a2e158eb7f0a94047b23872b7b346e7b9"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#a2e158eb7f0a94047b23872b7b346e7b9">meow::RGBf_Space::r</a></div><div class="ttdeci">double const & r() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00114">RGB_Space.h:114</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_ae8368184fb8579d83d4f883191b8502e"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#ae8368184fb8579d83d4f883191b8502e">meow::HSVf_Space::operator/</a></div><div class="ttdeci">HSVf_Space operator/(double const &c) const </div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00075">HSV_Space.h:75</a></div></div> <div class="ttc" id="classmeow_1_1Color3__Space_html_aa6661a1aaaf985a4b2d68db88ec93d2f"><div class="ttname"><a href="classmeow_1_1Color3__Space.html#aa6661a1aaaf985a4b2d68db88ec93d2f">meow::Color3_Space< double >::max</a></div><div class="ttdeci">doubleconst & max(size_t id) const</div><div class="ttdoc">Return the maximum of the i -th channel. </div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00107">Color3_Space.h:107</a></div></div> @@ -245,7 +249,7 @@ $(document).ready(function(){initNavTree('HSV__Space_8h_source.html','');}); <div class="ttc" id="HSL__Space_8h_html"><div class="ttname"><a href="HSL__Space_8h.html">HSL_Space.h</a></div></div> <div class="ttc" id="Color3__Space_8h_html"><div class="ttname"><a href="Color3__Space_8h.html">Color3_Space.h</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_aa5d83feefbbd4dee3d2642bd4782ee63"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#aa5d83feefbbd4dee3d2642bd4782ee63">meow::HSVf_Space::hsv</a></div><div class="ttdeci">double const & hsv(size_t i, double c)</div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00054">HSV_Space.h:54</a></div></div> -<div class="ttc" id="classmeow_1_1Vector3D_html"><div class="ttname"><a href="classmeow_1_1Vector3D.html">meow::Vector3D</a></div><div class="ttdoc">3D's vector </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00265">Vectors.h:265</a></div></div> +<div class="ttc" id="classmeow_1_1Vector3D_html"><div class="ttname"><a href="classmeow_1_1Vector3D.html">meow::Vector3D</a></div><div class="ttdoc">3D's vector </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00245">Vectors.h:245</a></div></div> <div class="ttc" id="classmeow_1_1RGBf__Space_html_aeb0cd2d681af6a70861ff371bf596e17"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#aeb0cd2d681af6a70861ff371bf596e17">meow::RGBf_Space::gMin</a></div><div class="ttdeci">double const & gMin() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00107">RGB_Space.h:107</a></div></div> <div class="ttc" id="classmeow_1_1HSVf__Space_html_a9fa2946d82a60f47487364bbbbfb824f"><div class="ttname"><a href="classmeow_1_1HSVf__Space.html#a9fa2946d82a60f47487364bbbbfb824f">meow::HSVf_Space::s</a></div><div class="ttdeci">double const & s() const </div><div class="ttdef"><b>Definition:</b> <a href="HSV__Space_8h_source.html#l00052">HSV_Space.h:52</a></div></div> <div class="ttc" id="classmeow_1_1RGBi__Space_html"><div class="ttname"><a href="classmeow_1_1RGBi__Space.html">meow::RGBi_Space</a></div><div class="ttdoc">以整數 Red, Green, Blue 三個值所組成的色彩空間 </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00019">RGB_Space.h:19</a></div></div> @@ -285,7 +289,7 @@ $(document).ready(function(){initNavTree('HSV__Space_8h_source.html','');}); <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="dir_f6840b2fecd08a3779df34f0add0e074.html">colors</a></li><li class="navelem"><a class="el" href="HSV__Space_8h.html">HSV_Space.h</a></li> - <li class="footer">Generated on Tue Jun 24 2014 03:53:31 for Templates -- Meow by + <li class="footer">Generated on Fri Jun 27 2014 18:24:40 for Templates -- Meow by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li> </ul> |