1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
|
<!-- HTML header for doxygen 1.8.3.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Templates -- Meow: meowpp/colors/YUV_Space.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<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>
</div>
<div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('YUV__Space_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">YUV_Space.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="YUV__Space_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef colors_YUV_Space_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor"></span><span class="preprocessor">#define colors_YUV_Space_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="Color3__Space_8h.html">Color3_Space.h</a>"</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include "../geo/Vectors.h"</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="RGB__Space_8h.html">RGB_Space.h</a>"</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "../math/utility.h"</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <cstdlib></span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">namespace </span>meow {</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html"> 21</a></span> <span class="keyword">class </span><a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a>: <span class="keyword">public</span> <a class="code" href="classmeow_1_1Color3__Space.html">Color3_Space</a><double> {</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">public</span>:</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24"> 23</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24">YUVf_Space</a>(): <a class="code" href="classmeow_1_1Color3__Space.html">Color3_Space</a><<a class="code" href="classdouble.html">double</a>>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(0.0, 0.0, 0.0),</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(1.0, 1.0, 1.0),</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(0.0, 0.0, 0.0)) {</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a2e9ddbeaae07e35c4c2adb254d5e4ca0"> 27</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html#a2e9ddbeaae07e35c4c2adb254d5e4ca0">YUVf_Space</a>(<span class="keywordtype">double</span> c): <a class="code" href="classmeow_1_1Color3__Space.html">Color3_Space</a><<a class="code" href="classdouble.html">double</a>>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(0.0, 0.0, 0.0),</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(1.0, 1.0, 1.0),</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>( c, c, c)) {</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  }</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a5694afcf7bf1962ea9e0abc7b8801358"> 31</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html#a5694afcf7bf1962ea9e0abc7b8801358">YUVf_Space</a>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D<double></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a25715d75897bd4ede9898edfc932ffd5">v</a>):</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classmeow_1_1Color3__Space.html">Color3_Space</a><<a class="code" href="classdouble.html">double</a>>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(0.0, 0.0, 0.0),</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(1.0, 1.0, 1.0),</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classmeow_1_1Vector3D.html">Vector3D</a><<a class="code" href="classdouble.html">double</a>>(v)) {</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a0b34feef9db731dbc7228c0bc3554415"> 36</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html#a0b34feef9db731dbc7228c0bc3554415">YUVf_Space</a>(YUV_Space <span class="keyword">const</span>& b): <a class="code" href="classmeow_1_1Color3__Space.html">Color3_Space</a><<a class="code" href="classdouble.html">double</a>>(b) {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  }</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a4ffd3340f73d108e4641de0eab155262"> 38</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html#a4ffd3340f73d108e4641de0eab155262">~YUVf_Space</a>() {</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a99f55740ad5a8b57f4edf68a69e2b720"> 40</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a99f55740ad5a8b57f4edf68a69e2b720">yuvMin</a>(<span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#a3351aea64c4ca1596694d6b95dce56df">min</a>(i); }</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#adb397aff53a9c0ede746bd734a519dd6"> 41</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#adb397aff53a9c0ede746bd734a519dd6">yMin</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#a3351aea64c4ca1596694d6b95dce56df">min</a>(0); }</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#ae799cfca7c0d3b4a817d33a6ebac5239"> 42</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#ae799cfca7c0d3b4a817d33a6ebac5239">uMin</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#a3351aea64c4ca1596694d6b95dce56df">min</a>(1); }</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#aba01d6b8d0d8840d0132ccd6b43d8c0c"> 43</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#aba01d6b8d0d8840d0132ccd6b43d8c0c">vMin</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#a3351aea64c4ca1596694d6b95dce56df">min</a>(2); }</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#afe90af43e91f5134419a2ca7624cff66"> 44</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#afe90af43e91f5134419a2ca7624cff66">yuvMax</a>(<span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#aa6661a1aaaf985a4b2d68db88ec93d2f">max</a>(i); }</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#adf7029d33a94df084c4ec0142a35d323"> 45</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#adf7029d33a94df084c4ec0142a35d323">yMax</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#aa6661a1aaaf985a4b2d68db88ec93d2f">max</a>(0); }</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#aaf9cb97273b96475641a372fbbe86949"> 46</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#aaf9cb97273b96475641a372fbbe86949">uMax</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#aa6661a1aaaf985a4b2d68db88ec93d2f">max</a>(1); }</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a3b168dd8186710b014f2e1d1b5ee1c63"> 47</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a3b168dd8186710b014f2e1d1b5ee1c63">vMax</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#aa6661a1aaaf985a4b2d68db88ec93d2f">max</a>(2); }</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19"> 48</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(<span class="keywordtype">size_t</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#af08839264f6ea6dc50cf6175d26afa6e">val</a>(i); }</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#ab09964887a8e6049fb9eaefd4fdd872c"> 49</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#ab09964887a8e6049fb9eaefd4fdd872c">y</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(0); }</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#ab7a1880a397a5fff594ac18c0d569bd6"> 50</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#ab7a1880a397a5fff594ac18c0d569bd6">u</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(1); }</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a25715d75897bd4ede9898edfc932ffd5"> 51</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a25715d75897bd4ede9898edfc932ffd5">v</a>( )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(2); }</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#afc4e9f52a8e75753772d99a077e5b4ea"> 52</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#afc4e9f52a8e75753772d99a077e5b4ea">yuv</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">double</span> c) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#af08839264f6ea6dc50cf6175d26afa6e">val</a>(i, c); }</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a92f015c9545102445d1163c7eab67e79"> 53</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a92f015c9545102445d1163c7eab67e79">y</a>( <span class="keywordtype">double</span> c) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(0, c); }</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#afaf24781d6b28a9615c807dfc70e4f7b"> 54</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#afaf24781d6b28a9615c807dfc70e4f7b">u</a>( <span class="keywordtype">double</span> c) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(1, c); }</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#af2f8d6a8a4913de6ad17f2da86d949fa"> 55</a></span>  <span class="keywordtype">double</span> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#af2f8d6a8a4913de6ad17f2da86d949fa">v</a>( <span class="keywordtype">double</span> c) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">yuv</a>(2, c); }</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a47a65edcd356f3754f6aca45483cae06"> 56</a></span>  <span class="keywordtype">double</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a47a65edcd356f3754f6aca45483cae06">yuvGet</a>(<span class="keywordtype">size_t</span> i) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#ac2efb0be959fc60f786bdcdc8a1fd8b2">valGet</a>(i); }</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a31c9176faad460be84a0255bc3173226"> 57</a></span>  <span class="keywordtype">double</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a31c9176faad460be84a0255bc3173226">yGet</a>( ) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a47a65edcd356f3754f6aca45483cae06">yuvGet</a>(0); }</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#ad377534486a9d1d1bea38d4c04ea0267"> 58</a></span>  <span class="keywordtype">double</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#ad377534486a9d1d1bea38d4c04ea0267">uGet</a>( ) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a47a65edcd356f3754f6aca45483cae06">yuvGet</a>(1); }</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a99e8bb42edb254ed1415f55ef1558ab0"> 59</a></span>  <span class="keywordtype">double</span>& <a class="code" href="classmeow_1_1YUVf__Space.html#a99e8bb42edb254ed1415f55ef1558ab0">vGet</a>( ) { <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a47a65edcd356f3754f6aca45483cae06">yuvGet</a>(2); }</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#acd8f8d7472bfa816669e601243c0c2df"> 60</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a>& <a class="code" href="classmeow_1_1YUVf__Space.html#acd8f8d7472bfa816669e601243c0c2df">operator=</a>(<a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <span class="keyword">const</span>& b) {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(b);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  }</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a06cf23bd6493ce0c1e69cca45b3b9f96"> 64</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <a class="code" href="classmeow_1_1YUVf__Space.html#a06cf23bd6493ce0c1e69cca45b3b9f96">operator+</a>(<a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <span class="keyword">const</span>& b)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24">YUVf_Space</a>(<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a> + b.<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a>);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#adf527a2801ec37a42edf1b1964007547"> 67</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <a class="code" href="classmeow_1_1YUVf__Space.html#adf527a2801ec37a42edf1b1964007547">operator-</a>(<a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <span class="keyword">const</span>& b)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24">YUVf_Space</a>(<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a> - b.<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a>);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#ad4e4990fd6dbaaa3bdbb8c4706830588"> 70</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <a class="code" href="classmeow_1_1YUVf__Space.html#ad4e4990fd6dbaaa3bdbb8c4706830588">operator*</a>(<span class="keywordtype">double</span> <span class="keyword">const</span>& c)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24">YUVf_Space</a>(<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a> * c);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a056acc13f596f9d488eeb8540aa93a2d"> 73</a></span>  <a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <a class="code" href="classmeow_1_1YUVf__Space.html#a056acc13f596f9d488eeb8540aa93a2d">operator/</a>(<span class="keywordtype">double</span> <span class="keyword">const</span>& c)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24">YUVf_Space</a>(<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a> / c);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classmeow_1_1YUVf__Space.html#a0a38aa9230be765cdb7e1fd5ace9315b"> 76</a></span>  <span class="keywordtype">double</span> <a class="code" href="classmeow_1_1YUVf__Space.html#a0a38aa9230be765cdb7e1fd5ace9315b">operator*</a>(<a class="code" href="classmeow_1_1YUVf__Space.html">YUVf_Space</a> <span class="keyword">const</span>& b)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a> * b.<a class="code" href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">val_</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> };</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="namespacemeow.html#a6ebfe120c658a6320de42c449e485e54"> 84</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_1YUVf__Space.html">YUVf_Space</a>* yuv) {</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</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="l00086"></a><span class="lineno"> 86</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="l00087"></a><span class="lineno"> 87</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="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">double</span> y = 0.299 * r + 0.587 * g + 0.114 * b;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">double</span> u = -0.169 * r - 0.331 * g + 0.500 * b + 0.5;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">double</span> v = 0.500 * r - 0.419 * g - 0.081 * b + 0.5;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#ab09964887a8e6049fb9eaefd4fdd872c">y</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#adb397aff53a9c0ede746bd734a519dd6">yMin</a>(), yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#adf7029d33a94df084c4ec0142a35d323">yMax</a>(), y));</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#ab7a1880a397a5fff594ac18c0d569bd6">u</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#ae799cfca7c0d3b4a817d33a6ebac5239">uMin</a>(), yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#aaf9cb97273b96475641a372fbbe86949">uMax</a>(), u));</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#a25715d75897bd4ede9898edfc932ffd5">v</a>(<a class="code" href="namespacemeow.html#af95cfca15ad7a51ed4d07b06e1296080">denormalize</a>(yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#aba01d6b8d0d8840d0132ccd6b43d8c0c">vMin</a>(), yuv-><a class="code" href="classmeow_1_1YUVf__Space.html#a3b168dd8186710b014f2e1d1b5ee1c63">vMax</a>(), v));</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="namespacemeow.html#ab4756ef949554840f60a762661acc103"> 99</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_1RGBf__Space.html">RGBf_Space</a>* rgb) {</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">double</span> y = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#adb397aff53a9c0ede746bd734a519dd6">yMin</a>(),yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#adf7029d33a94df084c4ec0142a35d323">yMax</a>(),yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#ab09964887a8e6049fb9eaefd4fdd872c">y</a>());</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">double</span> u = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#ae799cfca7c0d3b4a817d33a6ebac5239">uMin</a>(),yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#aaf9cb97273b96475641a372fbbe86949">uMax</a>(),yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#ab7a1880a397a5fff594ac18c0d569bd6">u</a>());</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">double</span> v = <a class="code" href="namespacemeow.html#aebe1ad335556790c578c4cf7836fd9ca">normalize</a>(yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#aba01d6b8d0d8840d0132ccd6b43d8c0c">vMin</a>(),yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#a3b168dd8186710b014f2e1d1b5ee1c63">vMax</a>(),yuv.<a class="code" href="classmeow_1_1YUVf__Space.html#a25715d75897bd4ede9898edfc932ffd5">v</a>());</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">double</span> r = y - 0.00093 * (u - 0.5) + 1.401687 * (v - 0.5);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">double</span> g = y - 0.34370 * (u - 0.5) - 0.714170 * (v - 0.5);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">double</span> b = y + 1.77216 * (u - 0.5) - 0.000990 * (v - 0.5);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</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="l00107"></a><span class="lineno"> 107</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="l00108"></a><span class="lineno"> 108</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="l00109"></a><span class="lineno"> 109</span> }</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="namespacemeow.html#a91f42614ccd31fdb9a3d8529f65198fd"> 114</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_1YUVf__Space.html">YUVf_Space</a>* yuv) {</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  tmp.<a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(rgb);</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(tmp, yuv);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> }</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="namespacemeow.html#af4d344590a86168090c2f2322289f080"> 123</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_1RGBi__Space.html">RGBi_Space</a>* rgb) {</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classmeow_1_1RGBf__Space.html">RGBf_Space</a> tmp;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="namespacemeow.html#af9ab85cd87a9f843e710657188f4c601">colorTransformate</a>(yuv, &tmp);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  rgb-><a class="code" href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">copyFrom</a>(tmp);</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> }</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> } <span class="comment">// meow</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="preprocessor">#endif // colors_YUV_H__</span></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_adf7029d33a94df084c4ec0142a35d323"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#adf7029d33a94df084c4ec0142a35d323">meow::YUVf_Space::yMax</a></div><div class="ttdeci">double const & yMax() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00045">YUV_Space.h:45</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>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_ab09964887a8e6049fb9eaefd4fdd872c"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#ab09964887a8e6049fb9eaefd4fdd872c">meow::YUVf_Space::y</a></div><div class="ttdeci">double const & y() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00049">YUV_Space.h:49</a></div></div>
<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_1YUVf__Space_html_a25715d75897bd4ede9898edfc932ffd5"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a25715d75897bd4ede9898edfc932ffd5">meow::YUVf_Space::v</a></div><div class="ttdeci">double const & v() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00051">YUV_Space.h:51</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_1YUVf__Space_html_a0b34feef9db731dbc7228c0bc3554415"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a0b34feef9db731dbc7228c0bc3554415">meow::YUVf_Space::YUVf_Space</a></div><div class="ttdeci">YUVf_Space(YUV_Space const &b)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00036">YUV_Space.h:36</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_1YUVf__Space_html_ab7a1880a397a5fff594ac18c0d569bd6"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#ab7a1880a397a5fff594ac18c0d569bd6">meow::YUVf_Space::u</a></div><div class="ttdeci">double const & u() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00050">YUV_Space.h:50</a></div></div>
<div class="ttc" id="classmeow_1_1Color3__Space_html_a3351aea64c4ca1596694d6b95dce56df"><div class="ttname"><a href="classmeow_1_1Color3__Space.html#a3351aea64c4ca1596694d6b95dce56df">meow::Color3_Space< double >::min</a></div><div class="ttdeci">doubleconst & min(size_t id) const</div><div class="ttdoc">Return the minimum of the i -th channel. </div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00099">Color3_Space.h:99</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_afc4e9f52a8e75753772d99a077e5b4ea"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#afc4e9f52a8e75753772d99a077e5b4ea">meow::YUVf_Space::yuv</a></div><div class="ttdeci">double const & yuv(size_t i, double c)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00052">YUV_Space.h:52</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_af2f8d6a8a4913de6ad17f2da86d949fa"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#af2f8d6a8a4913de6ad17f2da86d949fa">meow::YUVf_Space::v</a></div><div class="ttdeci">double const & v(double c)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00055">YUV_Space.h:55</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a47a65edcd356f3754f6aca45483cae06"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a47a65edcd356f3754f6aca45483cae06">meow::YUVf_Space::yuvGet</a></div><div class="ttdeci">double & yuvGet(size_t i)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00056">YUV_Space.h:56</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_acd8f8d7472bfa816669e601243c0c2df"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#acd8f8d7472bfa816669e601243c0c2df">meow::YUVf_Space::operator=</a></div><div class="ttdeci">YUVf_Space & operator=(YUVf_Space const &b)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00060">YUV_Space.h:60</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_afaf24781d6b28a9615c807dfc70e4f7b"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#afaf24781d6b28a9615c807dfc70e4f7b">meow::YUVf_Space::u</a></div><div class="ttdeci">double const & u(double c)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00054">YUV_Space.h:54</a></div></div>
<div class="ttc" id="classdouble_html"><div class="ttname"><a href="classdouble.html">double</a></div></div>
<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="classmeow_1_1YUVf__Space_html_a99e8bb42edb254ed1415f55ef1558ab0"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a99e8bb42edb254ed1415f55ef1558ab0">meow::YUVf_Space::vGet</a></div><div class="ttdeci">double & vGet()</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00059">YUV_Space.h:59</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_ae799cfca7c0d3b4a817d33a6ebac5239"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#ae799cfca7c0d3b4a817d33a6ebac5239">meow::YUVf_Space::uMin</a></div><div class="ttdeci">double const & uMin() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00042">YUV_Space.h:42</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a0a38aa9230be765cdb7e1fd5ace9315b"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a0a38aa9230be765cdb7e1fd5ace9315b">meow::YUVf_Space::operator*</a></div><div class="ttdeci">double operator*(YUVf_Space const &b) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00076">YUV_Space.h:76</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_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_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>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a31c9176faad460be84a0255bc3173226"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a31c9176faad460be84a0255bc3173226">meow::YUVf_Space::yGet</a></div><div class="ttdeci">double & yGet()</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00057">YUV_Space.h:57</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_adb397aff53a9c0ede746bd734a519dd6"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#adb397aff53a9c0ede746bd734a519dd6">meow::YUVf_Space::yMin</a></div><div class="ttdeci">double const & yMin() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00041">YUV_Space.h:41</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html">meow::YUVf_Space</a></div><div class="ttdoc">以浮點數Y(亮度), U(色度), V(濃度) 三個值所組成的色彩空間 </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00021">YUV_Space.h:21</a></div></div>
<div class="ttc" id="classmeow_1_1Color3__Space_html"><div class="ttname"><a href="classmeow_1_1Color3__Space.html">meow::Color3_Space</a></div><div class="ttdoc">Base class of color space with 3 channels. </div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00018">Color3_Space.h:18</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a99f55740ad5a8b57f4edf68a69e2b720"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a99f55740ad5a8b57f4edf68a69e2b720">meow::YUVf_Space::yuvMin</a></div><div class="ttdeci">double const & yuvMin(size_t i) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00040">YUV_Space.h:40</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_1YUVf__Space_html_ad377534486a9d1d1bea38d4c04ea0267"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#ad377534486a9d1d1bea38d4c04ea0267">meow::YUVf_Space::uGet</a></div><div class="ttdeci">double & uGet()</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00058">YUV_Space.h:58</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_1YUVf__Space_html_a056acc13f596f9d488eeb8540aa93a2d"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a056acc13f596f9d488eeb8540aa93a2d">meow::YUVf_Space::operator/</a></div><div class="ttdeci">YUVf_Space operator/(double const &c) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00073">YUV_Space.h:73</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_1YUVf__Space_html_a4ffd3340f73d108e4641de0eab155262"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a4ffd3340f73d108e4641de0eab155262">meow::YUVf_Space::~YUVf_Space</a></div><div class="ttdeci">~YUVf_Space()</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00038">YUV_Space.h:38</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>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a2e9ddbeaae07e35c4c2adb254d5e4ca0"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a2e9ddbeaae07e35c4c2adb254d5e4ca0">meow::YUVf_Space::YUVf_Space</a></div><div class="ttdeci">YUVf_Space(double c)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00027">YUV_Space.h:27</a></div></div>
<div class="ttc" id="classmeow_1_1RGBf__Space_html_a029c3bd52ae818462558742dc2be0904"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#a029c3bd52ae818462558742dc2be0904">meow::RGBf_Space::bMax</a></div><div class="ttdeci">double const & bMax() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00112">RGB_Space.h:112</a></div></div>
<div class="ttc" id="classmeow_1_1RGBf__Space_html_af473ccd4b8202097640ba9f19428caef"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#af473ccd4b8202097640ba9f19428caef">meow::RGBf_Space::rMax</a></div><div class="ttdeci">double const & rMax() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00110">RGB_Space.h:110</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a5694afcf7bf1962ea9e0abc7b8801358"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a5694afcf7bf1962ea9e0abc7b8801358">meow::YUVf_Space::YUVf_Space</a></div><div class="ttdeci">YUVf_Space(Vector3D< double > const &v)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00031">YUV_Space.h:31</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a06cf23bd6493ce0c1e69cca45b3b9f96"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a06cf23bd6493ce0c1e69cca45b3b9f96">meow::YUVf_Space::operator+</a></div><div class="ttdeci">YUVf_Space operator+(YUVf_Space const &b) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00064">YUV_Space.h:64</a></div></div>
<div class="ttc" id="classmeow_1_1RGBf__Space_html_a65d8088fb8b755f0b3f173dcda552789"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#a65d8088fb8b755f0b3f173dcda552789">meow::RGBf_Space::gMax</a></div><div class="ttdeci">double const & gMax() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00111">RGB_Space.h:111</a></div></div>
<div class="ttc" id="classmeow_1_1RGBf__Space_html_a8a0a6daacecfbd1769cbdb321988ab88"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#a8a0a6daacecfbd1769cbdb321988ab88">meow::RGBf_Space::b</a></div><div class="ttdeci">double const & b() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00116">RGB_Space.h:116</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_ad4e4990fd6dbaaa3bdbb8c4706830588"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#ad4e4990fd6dbaaa3bdbb8c4706830588">meow::YUVf_Space::operator*</a></div><div class="ttdeci">YUVf_Space operator*(double const &c) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00070">YUV_Space.h:70</a></div></div>
<div class="ttc" id="classmeow_1_1RGBf__Space_html_ad25036799ca38983cdb74ed6b4245d51"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#ad25036799ca38983cdb74ed6b4245d51">meow::RGBf_Space::g</a></div><div class="ttdeci">double const & g() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00115">RGB_Space.h:115</a></div></div>
<div class="ttc" id="classmeow_1_1RGBf__Space_html_a130bbee98fdd279a415e18aa0ca2f13c"><div class="ttname"><a href="classmeow_1_1RGBf__Space.html#a130bbee98fdd279a415e18aa0ca2f13c">meow::RGBf_Space::bMin</a></div><div class="ttdeci">double const & bMin() const </div><div class="ttdef"><b>Definition:</b> <a href="RGB__Space_8h_source.html#l00108">RGB_Space.h:108</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a9f4740de51da44bb8397c90f24975c19"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a9f4740de51da44bb8397c90f24975c19">meow::YUVf_Space::yuv</a></div><div class="ttdeci">double const & yuv(size_t i) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00048">YUV_Space.h:48</a></div></div>
<div class="ttc" id="classmeow_1_1Color3__Space_html_aa5c43cb67d674223a0a2361ac8de55c1"><div class="ttname"><a href="classmeow_1_1Color3__Space.html#aa5c43cb67d674223a0a2361ac8de55c1">meow::Color3_Space< double >::copyFrom</a></div><div class="ttdeci">Color3_Space< double > & copyFrom(Color3_Space< double > const &b)</div><div class="ttdoc">Copy method. </div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00054">Color3_Space.h:54</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_afe90af43e91f5134419a2ca7624cff66"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#afe90af43e91f5134419a2ca7624cff66">meow::YUVf_Space::yuvMax</a></div><div class="ttdeci">double const & yuvMax(size_t i) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00044">YUV_Space.h:44</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_aaf9cb97273b96475641a372fbbe86949"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#aaf9cb97273b96475641a372fbbe86949">meow::YUVf_Space::uMax</a></div><div class="ttdeci">double const & uMax() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00046">YUV_Space.h:46</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a9b3807a627b89e9484eda3fa40120a24"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a9b3807a627b89e9484eda3fa40120a24">meow::YUVf_Space::YUVf_Space</a></div><div class="ttdeci">YUVf_Space()</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00023">YUV_Space.h:23</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_adf527a2801ec37a42edf1b1964007547"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#adf527a2801ec37a42edf1b1964007547">meow::YUVf_Space::operator-</a></div><div class="ttdeci">YUVf_Space operator-(YUVf_Space const &b) const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00067">YUV_Space.h:67</a></div></div>
<div class="ttc" id="classmeow_1_1Color3__Space_html_af08839264f6ea6dc50cf6175d26afa6e"><div class="ttname"><a href="classmeow_1_1Color3__Space.html#af08839264f6ea6dc50cf6175d26afa6e">meow::Color3_Space< double >::val</a></div><div class="ttdeci">doubleconst & val(size_t id) const</div><div class="ttdoc">Return the value of the i -th channel. </div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00117">Color3_Space.h:117</a></div></div>
<div class="ttc" id="classmeow_1_1Color3__Space_html_aa134d705ea25b1f64db8bef07d1757ae"><div class="ttname"><a href="classmeow_1_1Color3__Space.html#aa134d705ea25b1f64db8bef07d1757ae">meow::Color3_Space< double >::val_</a></div><div class="ttdeci">Vector3D< double > val_</div><div class="ttdef"><b>Definition:</b> <a href="Color3__Space_8h_source.html#l00022">Color3_Space.h:22</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a92f015c9545102445d1163c7eab67e79"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a92f015c9545102445d1163c7eab67e79">meow::YUVf_Space::y</a></div><div class="ttdeci">double const & y(double c)</div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00053">YUV_Space.h:53</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_aba01d6b8d0d8840d0132ccd6b43d8c0c"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#aba01d6b8d0d8840d0132ccd6b43d8c0c">meow::YUVf_Space::vMin</a></div><div class="ttdeci">double const & vMin() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00043">YUV_Space.h:43</a></div></div>
<div class="ttc" id="classmeow_1_1YUVf__Space_html_a3b168dd8186710b014f2e1d1b5ee1c63"><div class="ttname"><a href="classmeow_1_1YUVf__Space.html#a3b168dd8186710b014f2e1d1b5ee1c63">meow::YUVf_Space::vMax</a></div><div class="ttdeci">double const & vMax() const </div><div class="ttdef"><b>Definition:</b> <a href="YUV__Space_8h_source.html#l00047">YUV_Space.h:47</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<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="YUV__Space_8h.html">YUV_Space.h</a></li>
<li class="footer">Generated on Tue Jun 24 2014 03:53:31 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>
</div>
</body>
</html>
|