aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/Bitmap_8h_source.html
blob: d9053dd151485b9c884ac9940ffc765be10ccd4a (plain) (blame)
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<!-- 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/gra/Bitmap.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
   &#160;<span id="projectnumber">1.1.4</span>
   </div>
   <div id="projectbrief">A C++ template which is unable and also not allowed to compile to obj-file first.</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('Bitmap_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Bitmap.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Bitmap_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>&#160;<span class="preprocessor">#ifndef   gra_Bitmap_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define   gra_Bitmap_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;../math/utility.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;../math/Matrix.h&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;../oo/ObjBase.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;typeinfo&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span>meow {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> Pixel&gt;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html">   23</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a>: <span class="keyword">public</span> <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> {</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Pixel&gt;</a> matrix_;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keyword">static</span> std::vector&lt;double&gt; gaussianFactor1(<span class="keywordtype">double</span> sigma) {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordtype">double</span> sigma2 = <a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sigma);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a> = std::max(ceil((<span class="keywordtype">double</span>)(sigma * 2)), 0.0);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    std::vector&lt;double&gt; factor(width + 1 + width);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> x = 0; x &lt; <a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>; x++) {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;      factor[width - x - 1] = exp(-(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>((<span class="keywordtype">double</span>)x)) / (2.0 * sigma2));</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;      factor[width + x + 1] = exp(-(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>((<span class="keywordtype">double</span>)x)) / (2.0 * sigma2));</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    factor[<a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>] = 1.0;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="keywordflow">return</span> factor;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  }</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keyword">static</span> std::vector&lt;double&gt; gradianceFactor1(<span class="keywordtype">double</span> sigma) {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">double</span> sigma2 = <a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(sigma), ss = sigma * 2;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a> = std::max(ceil(ss), 1.0);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    std::vector&lt;double&gt; factor(width + 1 + width);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> x = 0; x &lt; <a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>; x++) {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;      factor[width - x - 1] =  (<a class="code" href="classdouble.html">double</a>)x * exp(-(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>((<span class="keywordtype">double</span>)x))/(2.0*sigma2));</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;      factor[width + x + 1] = -(<a class="code" href="classdouble.html">double</a>)x * exp(-(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>((<span class="keywordtype">double</span>)x))/(2.0*sigma2));</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    factor[<a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>] = 0.0;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">return</span> factor;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> xyBlur(std::vector&lt;double&gt; <span class="keyword">const</span>&amp; factor,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;                ssize_t dx, ssize_t dy)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> ret(*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordflow">if</span> (factor.size() &gt; 0) {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;      ssize_t w = factor.size() / 2;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> y = 0, Y = <a class="code" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">height</a>(); y &lt; Y; y++) {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> x = 0, X = <a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>(); x &lt; X; x++) {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;          Pixel   sum(0);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;          <span class="keywordtype">double</span> fsum(0);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;          <span class="keywordflow">for</span> (ssize_t i = -w; i &lt;= w; i++) {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            ssize_t x2 = (ssize_t)x + dx * i;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            ssize_t y2 = (ssize_t)y + dy * i;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            <span class="keywordflow">if</span> (0 &lt;= x2 &amp;&amp; x2 &lt; (ssize_t)X &amp;&amp; 0 &lt;= y2 &amp;&amp; y2 &lt; (ssize_t)Y) {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;              sum  = sum + <a class="code" href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">pixel</a>(y2, x2) * factor[i + w];</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;              fsum = fsum + fabs(factor[i + w]);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;          }</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;          ret.<a class="code" href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">pixel</a>(y, x, sum / fsum);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">return</span> ret;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#ab313e096befabd933633cb75b870f75c">   81</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html#ab313e096befabd933633cb75b870f75c">Bitmap</a>() {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  }</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a2621e8833933b59c0e82e8776f1a6f11">   87</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html#a2621e8833933b59c0e82e8776f1a6f11">Bitmap</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> <span class="keyword">const</span>&amp; b): matrix_(b.matrix_) {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  }</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#af4c9896dc2cdc714be5106bef45430c8">   97</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html#af4c9896dc2cdc714be5106bef45430c8">Bitmap</a>(<span class="keywordtype">size_t</span> h, <span class="keywordtype">size_t</span> w, Pixel <span class="keyword">const</span>&amp; p): matrix_(h, w, p) {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a73386b915d50c06f8e15cb6b53e9eb0e">  103</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html#a73386b915d50c06f8e15cb6b53e9eb0e">~Bitmap</a>(){</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">  109</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">copyFrom</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    matrix_.<a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(b.matrix_);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  }</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#affd5f41b44fa6afc55f2a3eb3f01cc4d">  117</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#affd5f41b44fa6afc55f2a3eb3f01cc4d">referenceFrom</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    matrix_.<a class="code" href="classmeow_1_1Matrix.html#a1dbef5b1a46df480f7fa3e118fd12bec">referenceFrom</a>(b.matrix_);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#ae7bcc670d666a784d6e5e8f14b74aa3d">  130</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Bitmap.html#ae7bcc670d666a784d6e5e8f14b74aa3d">reset</a>(<span class="keywordtype">size_t</span> h, <span class="keywordtype">size_t</span> w, Pixel <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    matrix_.<a class="code" href="classmeow_1_1Matrix.html#ac17251cb984beb1f74558724a22a0120">reset</a>(h, w, p);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a573af36148f56209f9b537ee446e2867">  137</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Bitmap.html#a573af36148f56209f9b537ee446e2867">clear</a>() {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    matrix_.<a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>(0, 0, Pixel(0));</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">  144</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">height</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>();</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  }</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">  151</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;  }</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a13b986e9310eb100c100fd62fa548233">  158</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#a13b986e9310eb100c100fd62fa548233">size</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>();</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  }</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a3887d1c54026fe8ed27fd21a294d8d0a">  169</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#a3887d1c54026fe8ed27fd21a294d8d0a">height</a>(<span class="keywordtype">size_t</span> h2, Pixel <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>(h2, p);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;  }</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a49731792bf45d5c230da50e3897e3061">  180</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#a49731792bf45d5c230da50e3897e3061">width</a>(<span class="keywordtype">size_t</span> w2, Pixel <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(w2, p);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#aef0bc77675e4652f885baf03cbcc25ef">  192</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Bitmap.html#aef0bc77675e4652f885baf03cbcc25ef">size</a>(<span class="keywordtype">size_t</span> h2, <span class="keywordtype">size_t</span> w2, Pixel <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>(h2, w2, p);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  }</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">  203</a></span>&#160;  Pixel <a class="code" href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">pixel</a>(<span class="keywordtype">size_t</span> y, <span class="keywordtype">size_t</span> x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(y, x);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;  }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#afe97efe50d112a71ee45da6d2bc3e9dc">  215</a></span>&#160;  Pixel <a class="code" href="classmeow_1_1Bitmap.html#afe97efe50d112a71ee45da6d2bc3e9dc">pixel</a>(<span class="keywordtype">size_t</span> y, <span class="keywordtype">size_t</span> x, Pixel <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">entry</a>(y, x, p);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;  }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a17f92dec30f314d832f040257d6d5584">  231</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Bitmap.html#a17f92dec30f314d832f040257d6d5584">pixels</a>(ssize_t yFirst, ssize_t yLast,</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;              ssize_t xFirst, ssize_t xLast,</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;              Pixel <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordflow">return</span> matrix_.<a class="code" href="classmeow_1_1Matrix.html#a13384643dc412817fdcd8f1834a02d12">entries</a>(yFirst, yLast, xFirst, xLast, p);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;  }</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a953dfea2b7d257d43a386e28a2bbbc95">  240</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Pixel&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a953dfea2b7d257d43a386e28a2bbbc95">matrix</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordflow">return</span> matrix_;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  }</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a2c3ed8ebcceb2d5c5267df832e3aa3df">  247</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Pixel&gt;</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a2c3ed8ebcceb2d5c5267df832e3aa3df">matrixGet</a>() {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordflow">return</span> matrix_;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;  }</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a04ae618cb658a075b9bbe2ec2b9d9f2d">  254</a></span>&#160;  <a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Pixel&gt;</a> <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a04ae618cb658a075b9bbe2ec2b9d9f2d">matrix</a>(<a class="code" href="classmeow_1_1Matrix.html">Matrix&lt;Pixel&gt;</a> <span class="keyword">const</span>&amp; p) {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    matrix_.<a class="code" href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">copyFrom</a>(p);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Bitmap.html#a953dfea2b7d257d43a386e28a2bbbc95">matrix</a>();</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;  }</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a499f3f0ceb101cb92ea8cd030b3d9952">  266</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> <a class="code" href="classmeow_1_1Bitmap.html#a499f3f0ceb101cb92ea8cd030b3d9952">gaussian</a>(<span class="keywordtype">double</span> radiusY, <span class="keywordtype">double</span> radiusX)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keywordflow">return</span> (xyBlur(gaussianFactor1(radiusY), 1, 0).</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            xyBlur(gaussianFactor1(radiusX), 0, 1));</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;  }</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a0aae89f4f8dbc1ba2b8f43e29a4a592e">  278</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap&lt;Pixel&gt;</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a0aae89f4f8dbc1ba2b8f43e29a4a592e">gaussianed</a>(<span class="keywordtype">double</span> radiusY, <span class="keywordtype">double</span> radiusX) {</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <a class="code" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">copyFrom</a>(<a class="code" href="classmeow_1_1Bitmap.html#a499f3f0ceb101cb92ea8cd030b3d9952">gaussian</a>(radiusY, radiusX));</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;  }</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;</div>
<div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#aaf5c0c592084c80bce532801f4cdeb22">  290</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap&lt;Pixel&gt;</a>  <a class="code" href="classmeow_1_1Bitmap.html#aaf5c0c592084c80bce532801f4cdeb22">gradianceX</a>(<span class="keywordtype">double</span> radiusY, <span class="keywordtype">double</span> radiusX)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordflow">return</span> (xyBlur(gaussianFactor1(radiusY), 1, 0).</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;            xyBlur(gradianceFactor1(radiusX), 0, 1));</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;  }</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a1630de00aebe37d58e04d6b9fc69eafb">  302</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap&lt;Pixel&gt;</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a1630de00aebe37d58e04d6b9fc69eafb">gradiancedX</a>(<span class="keywordtype">double</span> radiusY, <span class="keywordtype">double</span> radiusX) {</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">copyFrom</a>(<a class="code" href="classmeow_1_1Bitmap.html#aaf5c0c592084c80bce532801f4cdeb22">gradianceX</a>(radiusY, radiusX));</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  }</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#aa08c848b01a304f4569f0e45f3ccee12">  313</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap&lt;Pixel&gt;</a> <a class="code" href="classmeow_1_1Bitmap.html#aa08c848b01a304f4569f0e45f3ccee12">gradianceY</a> (<span class="keywordtype">double</span> radiusY, <span class="keywordtype">double</span> radiusX)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">return</span> (xyBlur(gaussianFactor1(radiusX), 0, 1).</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            xyBlur(gradianceFactor1(radiusY), 1, 0));</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;  }</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#ae8d8985bd64971590862b165e2949faf">  325</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap&lt;Pixel&gt;</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#ae8d8985bd64971590862b165e2949faf">gradiancedY</a>(<span class="keywordtype">double</span> radiusY, <span class="keywordtype">double</span> radiusX) {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">copyFrom</a>(<a class="code" href="classmeow_1_1Bitmap.html#aa08c848b01a304f4569f0e45f3ccee12">gradianceY</a>(radiusY, radiusX));</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;  }</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div>
<div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#aba3ea0e5f48b63363c91ae4168dbd0bb">  332</a></span>&#160;  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a>&amp; <a class="code" href="classmeow_1_1Bitmap.html#aba3ea0e5f48b63363c91ae4168dbd0bb">operator=</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a> <span class="keyword">const</span>&amp; b) {</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">copyFrom</a>(b);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;  }</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a646c781896c74a7af4814da06cabf9e5">  339</a></span>&#160;  Pixel <a class="code" href="classmeow_1_1Bitmap.html#a646c781896c74a7af4814da06cabf9e5">operator()</a>(<span class="keywordtype">size_t</span> y, <span class="keywordtype">size_t</span> x)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">pixel</a>(y, x);</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;  }</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div>
<div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a6ebb5310e9e24cee25fc748a0b9fef28">  346</a></span>&#160;  Pixel <span class="keyword">const</span>&amp; <a class="code" href="classmeow_1_1Bitmap.html#a6ebb5310e9e24cee25fc748a0b9fef28">operator()</a>(<span class="keywordtype">size_t</span> y, <span class="keywordtype">size_t</span> x, Pixel <span class="keyword">const</span>&amp; p)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">pixel</a>(y, x, p);</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;  }</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#aad700e26eae54cb653919c165dcc98dd">  354</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Bitmap.html#aad700e26eae54cb653919c165dcc98dd">write</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keywordflow">if</span> (fg &amp; 1)</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;      <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordflow">if</span> (bin) {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;      <span class="keywordtype">long</span> tmp;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;      <span class="keywordflow">if</span> (fwrite(&amp;(tmp = matrix_.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>()), <span class="keyword">sizeof</span>(tmp), 1, f) &lt; 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;      <span class="keywordflow">if</span> (fwrite(&amp;(tmp = matrix_.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>()), <span class="keyword">sizeof</span>(tmp), 1, f) &lt; 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    }</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;      <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">&quot;%ld %ld\n&quot;</span>, (<span class="keywordtype">long</span>)matrix_.<a class="code" href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">cols</a>(), (long)matrix_.<a class="code" href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">rows</a>())</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;          &lt; 2) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;  }</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div>
<div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a3b13a4923d68de65bb7e21712185bec8">  373</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Bitmap.html#a3b13a4923d68de65bb7e21712185bec8">read</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg) {</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordflow">if</span> (fg &amp; 1)</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;      <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <span class="keywordtype">long</span> tmp1, tmp2;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordflow">if</span> (bin) {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;      <span class="keywordflow">if</span> (fread(&amp;tmp1, <span class="keyword">sizeof</span>(tmp1), 1, f) &lt; 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;      <span class="keywordflow">if</span> (fread(&amp;tmp2, <span class="keyword">sizeof</span>(tmp2), 1, f) &lt; 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    }</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;      <span class="keywordflow">if</span> (fscanf(f, <span class="stringliteral">&quot;%ld %ld&quot;</span>, &amp;tmp1, &amp;tmp2) &lt; 2) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    }</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    matrix_.<a class="code" href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">size</a>(tmp1, tmp2, Pixel(0));</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;  }</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div>
<div class="line"><a name="l00392"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a07b1eb689498112691ca72e8c6ae453f">  392</a></span>&#160;  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1Bitmap.html#a07b1eb689498112691ca72e8c6ae453f">create</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classmeow_1_1Bitmap.html#ab313e096befabd933633cb75b870f75c">Bitmap</a>();</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;  }</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div>
<div class="line"><a name="l00405"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a998a6a9607f8552ace65cce0d251042c">  405</a></span>&#160;  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1Bitmap.html#a998a6a9607f8552ace65cce0d251042c">copyFrom</a>(<a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> <span class="keyword">const</span>* b) {</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <span class="keywordflow">return</span> &amp;(<a class="code" href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">copyFrom</a>(*(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap</a>*)b));</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;  }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;</div>
<div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#af8debba04055594b8507c77b3dbd0ff7">  413</a></span>&#160;  <span class="keywordtype">char</span> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1Bitmap.html#af8debba04055594b8507c77b3dbd0ff7">ctype</a>()<span class="keyword"> const</span>{</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">typeid</span>(*this).name();</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;  }</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div>
<div class="line"><a name="l00421"></a><span class="lineno"><a class="line" href="classmeow_1_1Bitmap.html#a7f282d9a1ebb07ca5fe12d8ae73121d1">  421</a></span>&#160;  std::string <a class="code" href="classmeow_1_1Bitmap.html#a7f282d9a1ebb07ca5fe12d8ae73121d1">type</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    <span class="keywordflow">return</span> std::string(<a class="code" href="classmeow_1_1Bitmap.html#af8debba04055594b8507c77b3dbd0ff7">ctype</a>());</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;  }</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;};</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;} <span class="comment">// meow</span></div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;<span class="preprocessor">#endif // gra_Bitmap_H__</span></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_aa08c848b01a304f4569f0e45f3ccee12"><div class="ttname"><a href="classmeow_1_1Bitmap.html#aa08c848b01a304f4569f0e45f3ccee12">meow::Bitmap::gradianceY</a></div><div class="ttdeci">Bitmap&lt; Pixel &gt; gradianceY(double radiusY, double radiusX) const </div><div class="ttdoc">回傳對y偏微分 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00313">Bitmap.h:313</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a998a6a9607f8552ace65cce0d251042c"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a998a6a9607f8552ace65cce0d251042c">meow::Bitmap::copyFrom</a></div><div class="ttdeci">ObjBase * copyFrom(ObjBase const *b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00405">Bitmap.h:405</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a17f92dec30f314d832f040257d6d5584"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a17f92dec30f314d832f040257d6d5584">meow::Bitmap::pixels</a></div><div class="ttdeci">void pixels(ssize_t yFirst, ssize_t yLast, ssize_t xFirst, ssize_t xLast, Pixel const &amp;p)</div><div class="ttdoc">區塊修改 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00231">Bitmap.h:231</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_af4c9896dc2cdc714be5106bef45430c8"><div class="ttname"><a href="classmeow_1_1Bitmap.html#af4c9896dc2cdc714be5106bef45430c8">meow::Bitmap::Bitmap</a></div><div class="ttdeci">Bitmap(size_t h, size_t w, Pixel const &amp;p)</div><div class="ttdoc">constructor, 指定寬高, 預設Pixel </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00097">Bitmap.h:97</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_aef0bc77675e4652f885baf03cbcc25ef"><div class="ttname"><a href="classmeow_1_1Bitmap.html#aef0bc77675e4652f885baf03cbcc25ef">meow::Bitmap::size</a></div><div class="ttdeci">size_t size(size_t h2, size_t w2, Pixel const &amp;p)</div><div class="ttdoc">修改寬高 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00192">Bitmap.h:192</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a1dbef5b1a46df480f7fa3e118fd12bec"><div class="ttname"><a href="classmeow_1_1Matrix.html#a1dbef5b1a46df480f7fa3e118fd12bec">meow::Matrix::referenceFrom</a></div><div class="ttdeci">Matrix &amp; referenceFrom(Matrix const &amp;m)</div><div class="ttdoc">reference </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00101">Matrix.h:101</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a646c781896c74a7af4814da06cabf9e5"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a646c781896c74a7af4814da06cabf9e5">meow::Bitmap::operator()</a></div><div class="ttdeci">Pixel operator()(size_t y, size_t x) const </div><div class="ttdoc">same as pixel(y, x) </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00339">Bitmap.h:339</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a2290360ab49bdf1f33dc717fce71d5df"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">meow::Bitmap::height</a></div><div class="ttdeci">size_t height() const </div><div class="ttdoc">回傳高度 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00144">Bitmap.h:144</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a560adbe0b39f52bfb016edddc2955178"><div class="ttname"><a href="classmeow_1_1Matrix.html#a560adbe0b39f52bfb016edddc2955178">meow::Matrix::rows</a></div><div class="ttdeci">size_t rows() const </div><div class="ttdoc">Return number of rows. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00120">Matrix.h:120</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a573af36148f56209f9b537ee446e2867"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a573af36148f56209f9b537ee446e2867">meow::Bitmap::clear</a></div><div class="ttdeci">void clear()</div><div class="ttdoc">清除資料, 寬高階規零 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00137">Bitmap.h:137</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a6ebb5310e9e24cee25fc748a0b9fef28"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a6ebb5310e9e24cee25fc748a0b9fef28">meow::Bitmap::operator()</a></div><div class="ttdeci">Pixel const &amp; operator()(size_t y, size_t x, Pixel const &amp;p) const </div><div class="ttdoc">same as pixel(y, x, p) </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00346">Bitmap.h:346</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_af8debba04055594b8507c77b3dbd0ff7"><div class="ttname"><a href="classmeow_1_1Bitmap.html#af8debba04055594b8507c77b3dbd0ff7">meow::Bitmap::ctype</a></div><div class="ttdeci">char const * ctype() const </div><div class="ttdoc">回傳class的type </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00413">Bitmap.h:413</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_aba3ea0e5f48b63363c91ae4168dbd0bb"><div class="ttname"><a href="classmeow_1_1Bitmap.html#aba3ea0e5f48b63363c91ae4168dbd0bb">meow::Bitmap::operator=</a></div><div class="ttdeci">Bitmap &amp; operator=(Bitmap const &amp;b)</div><div class="ttdoc">same as copyFrom(b) </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00332">Bitmap.h:332</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_aaf5c0c592084c80bce532801f4cdeb22"><div class="ttname"><a href="classmeow_1_1Bitmap.html#aaf5c0c592084c80bce532801f4cdeb22">meow::Bitmap::gradianceX</a></div><div class="ttdeci">Bitmap&lt; Pixel &gt; gradianceX(double radiusY, double radiusX) const </div><div class="ttdoc">回傳對x偏微分 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00290">Bitmap.h:290</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a499f3f0ceb101cb92ea8cd030b3d9952"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a499f3f0ceb101cb92ea8cd030b3d9952">meow::Bitmap::gaussian</a></div><div class="ttdeci">Bitmap gaussian(double radiusY, double radiusX) const </div><div class="ttdoc">回傳高斯模糊 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00266">Bitmap.h:266</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a4db3bb07e2557cbc668bdaa1beb241df"><div class="ttname"><a href="classmeow_1_1Matrix.html#a4db3bb07e2557cbc668bdaa1beb241df">meow::Matrix::cols</a></div><div class="ttdeci">size_t cols() const </div><div class="ttdoc">Return number of cols. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00125">Matrix.h:125</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_1Bitmap_html_a953dfea2b7d257d43a386e28a2bbbc95"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a953dfea2b7d257d43a386e28a2bbbc95">meow::Bitmap::matrix</a></div><div class="ttdeci">Matrix&lt; Pixel &gt; const &amp; matrix() const </div><div class="ttdoc">回傳矩陣形式 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00240">Bitmap.h:240</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_ab313e096befabd933633cb75b870f75c"><div class="ttname"><a href="classmeow_1_1Bitmap.html#ab313e096befabd933633cb75b870f75c">meow::Bitmap::Bitmap</a></div><div class="ttdeci">Bitmap()</div><div class="ttdoc">constructor, 產生一個空的Bitmap </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00081">Bitmap.h:81</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a2621e8833933b59c0e82e8776f1a6f11"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a2621e8833933b59c0e82e8776f1a6f11">meow::Bitmap::Bitmap</a></div><div class="ttdeci">Bitmap(Bitmap const &amp;b)</div><div class="ttdoc">constructor, 複製一個bitmap </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00087">Bitmap.h:87</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html"><div class="ttname"><a href="classmeow_1_1Bitmap.html">meow::Bitmap</a></div><div class="ttdoc">二維點陣資料 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00023">Bitmap.h:23</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a3b13a4923d68de65bb7e21712185bec8"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a3b13a4923d68de65bb7e21712185bec8">meow::Bitmap::read</a></div><div class="ttdeci">bool read(FILE *f, bool bin, unsigned int fg)</div><div class="ttdoc">將資料讀入 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00373">Bitmap.h:373</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a0aae89f4f8dbc1ba2b8f43e29a4a592e"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a0aae89f4f8dbc1ba2b8f43e29a4a592e">meow::Bitmap::gaussianed</a></div><div class="ttdeci">Bitmap&lt; Pixel &gt; &amp; gaussianed(double radiusY, double radiusX)</div><div class="ttdoc">把自己高斯模糊 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00278">Bitmap.h:278</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a2c3ed8ebcceb2d5c5267df832e3aa3df"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a2c3ed8ebcceb2d5c5267df832e3aa3df">meow::Bitmap::matrixGet</a></div><div class="ttdeci">Matrix&lt; Pixel &gt; &amp; matrixGet()</div><div class="ttdoc">回傳矩陣形式 (non-constant form) </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00247">Bitmap.h:247</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_ac8f41ae97e068549565e9ac83ffef888"><div class="ttname"><a href="classmeow_1_1Bitmap.html#ac8f41ae97e068549565e9ac83ffef888">meow::Bitmap::pixel</a></div><div class="ttdeci">Pixel pixel(size_t y, size_t x) const </div><div class="ttdoc">取得 (y, x) 的pixel </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00203">Bitmap.h:203</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_ad8476258a0f9deefdb7170d53949d3ed"><div class="ttname"><a href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">meow::Bitmap::width</a></div><div class="ttdeci">size_t width() const </div><div class="ttdoc">回傳寬度 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00151">Bitmap.h:151</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_aad700e26eae54cb653919c165dcc98dd"><div class="ttname"><a href="classmeow_1_1Bitmap.html#aad700e26eae54cb653919c165dcc98dd">meow::Bitmap::write</a></div><div class="ttdeci">bool write(FILE *f, bool bin, unsigned int fg) const </div><div class="ttdoc">將資料寫入檔案 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00354">Bitmap.h:354</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_afb81446984f7c27458ccef86be2de413"><div class="ttname"><a href="classmeow_1_1Matrix.html#afb81446984f7c27458ccef86be2de413">meow::Matrix::copyFrom</a></div><div class="ttdeci">Matrix &amp; copyFrom(Matrix const &amp;m)</div><div class="ttdoc">copy </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00088">Matrix.h:88</a></div></div>
<div class="ttc" id="classmeow_1_1ObjBase_html"><div class="ttname"><a href="classmeow_1_1ObjBase.html">meow::ObjBase</a></div><div class="ttdoc">一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能 </div><div class="ttdef"><b>Definition:</b> <a href="ObjBase_8h_source.html#l00015">ObjBase.h:15</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a5e08b5d3c78c91b33b83da02b658539b"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a5e08b5d3c78c91b33b83da02b658539b">meow::Bitmap::copyFrom</a></div><div class="ttdeci">Bitmap &amp; copyFrom(Bitmap const &amp;b)</div><div class="ttdoc">複製 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00109">Bitmap.h:109</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a13384643dc412817fdcd8f1834a02d12"><div class="ttname"><a href="classmeow_1_1Matrix.html#a13384643dc412817fdcd8f1834a02d12">meow::Matrix::entries</a></div><div class="ttdeci">void entries(ssize_t rFirst, ssize_t rLast, ssize_t cFirst, ssize_t cLast, Entry const &amp;e)</div><div class="ttdoc">Change the entries from rFirst x cFirst to rLast x cLast. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00218">Matrix.h:218</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a8e35443c856f669d02b352f091c0404c"><div class="ttname"><a href="classmeow_1_1Matrix.html#a8e35443c856f669d02b352f091c0404c">meow::Matrix::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdoc">Return number of rows times number of cols. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00130">Matrix.h:130</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a13b986e9310eb100c100fd62fa548233"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a13b986e9310eb100c100fd62fa548233">meow::Bitmap::size</a></div><div class="ttdeci">size_t size() const </div><div class="ttdoc">回傳高度乘以寬度 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00158">Bitmap.h:158</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_afe97efe50d112a71ee45da6d2bc3e9dc"><div class="ttname"><a href="classmeow_1_1Bitmap.html#afe97efe50d112a71ee45da6d2bc3e9dc">meow::Bitmap::pixel</a></div><div class="ttdeci">Pixel pixel(size_t y, size_t x, Pixel const &amp;p)</div><div class="ttdoc">修改 (y, x) 的pixel </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00215">Bitmap.h:215</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a73386b915d50c06f8e15cb6b53e9eb0e"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a73386b915d50c06f8e15cb6b53e9eb0e">meow::Bitmap::~Bitmap</a></div><div class="ttdeci">~Bitmap()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00103">Bitmap.h:103</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a49731792bf45d5c230da50e3897e3061"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a49731792bf45d5c230da50e3897e3061">meow::Bitmap::width</a></div><div class="ttdeci">size_t width(size_t w2, Pixel const &amp;p)</div><div class="ttdoc">修改寬度 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00180">Bitmap.h:180</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html"><div class="ttname"><a href="classmeow_1_1Matrix.html">meow::Matrix&lt; Pixel &gt;</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_ae7bcc670d666a784d6e5e8f14b74aa3d"><div class="ttname"><a href="classmeow_1_1Bitmap.html#ae7bcc670d666a784d6e5e8f14b74aa3d">meow::Bitmap::reset</a></div><div class="ttdeci">void reset(size_t h, size_t w, Pixel const &amp;p)</div><div class="ttdoc">全部重設 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00130">Bitmap.h:130</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a7f282d9a1ebb07ca5fe12d8ae73121d1"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a7f282d9a1ebb07ca5fe12d8ae73121d1">meow::Bitmap::type</a></div><div class="ttdeci">std::string type() const </div><div class="ttdoc">回傳class的type </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00421">Bitmap.h:421</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a04ae618cb658a075b9bbe2ec2b9d9f2d"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a04ae618cb658a075b9bbe2ec2b9d9f2d">meow::Bitmap::matrix</a></div><div class="ttdeci">Matrix&lt; Pixel &gt; const &amp; matrix(Matrix&lt; Pixel &gt; const &amp;p)</div><div class="ttdoc">直接設定 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00254">Bitmap.h:254</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_affd5f41b44fa6afc55f2a3eb3f01cc4d"><div class="ttname"><a href="classmeow_1_1Bitmap.html#affd5f41b44fa6afc55f2a3eb3f01cc4d">meow::Bitmap::referenceFrom</a></div><div class="ttdeci">Bitmap &amp; referenceFrom(Bitmap const &amp;b)</div><div class="ttdoc">reference </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00117">Bitmap.h:117</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_a46a12f45237e654e0140387d7290eb8b"><div class="ttname"><a href="classmeow_1_1Matrix.html#a46a12f45237e654e0140387d7290eb8b">meow::Matrix::entry</a></div><div class="ttdeci">Entry entry(size_t r, size_t c) const </div><div class="ttdoc">Access the entry at r x c. </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00193">Matrix.h:193</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a1630de00aebe37d58e04d6b9fc69eafb"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a1630de00aebe37d58e04d6b9fc69eafb">meow::Bitmap::gradiancedX</a></div><div class="ttdeci">Bitmap&lt; Pixel &gt; &amp; gradiancedX(double radiusY, double radiusX)</div><div class="ttdoc">把自己對x偏微分 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00302">Bitmap.h:302</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a3887d1c54026fe8ed27fd21a294d8d0a"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a3887d1c54026fe8ed27fd21a294d8d0a">meow::Bitmap::height</a></div><div class="ttdeci">size_t height(size_t h2, Pixel const &amp;p)</div><div class="ttdoc">修改高度 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00169">Bitmap.h:169</a></div></div>
<div class="ttc" id="classmeow_1_1Matrix_html_ac17251cb984beb1f74558724a22a0120"><div class="ttname"><a href="classmeow_1_1Matrix.html#ac17251cb984beb1f74558724a22a0120">meow::Matrix::reset</a></div><div class="ttdeci">void reset(size_t r, size_t c, Entry const &amp;e)</div><div class="ttdoc">reset the size of the matrix to r x c with entry all be e </div><div class="ttdef"><b>Definition:</b> <a href="Matrix_8h_source.html#l00107">Matrix.h:107</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_a07b1eb689498112691ca72e8c6ae453f"><div class="ttname"><a href="classmeow_1_1Bitmap.html#a07b1eb689498112691ca72e8c6ae453f">meow::Bitmap::create</a></div><div class="ttdeci">ObjBase * create() const </div><div class="ttdoc">new一個自己 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00392">Bitmap.h:392</a></div></div>
<div class="ttc" id="namespacemeow_html_a1954e235973a2ac79a7a72a4b7d25573"><div class="ttname"><a href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">meow::squ</a></div><div class="ttdeci">T squ(T const &amp;x)</div><div class="ttdoc">x*x </div><div class="ttdef"><b>Definition:</b> <a href="math_2utility_8h_source.html#l00067">utility.h:67</a></div></div>
<div class="ttc" id="classmeow_1_1Bitmap_html_ae8d8985bd64971590862b165e2949faf"><div class="ttname"><a href="classmeow_1_1Bitmap.html#ae8d8985bd64971590862b165e2949faf">meow::Bitmap::gradiancedY</a></div><div class="ttdeci">Bitmap&lt; Pixel &gt; &amp; gradiancedY(double radiusY, double radiusX)</div><div class="ttdoc">把自己對y偏微分 </div><div class="ttdef"><b>Definition:</b> <a href="Bitmap_8h_source.html#l00325">Bitmap.h:325</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_115d3279a93b9c99d8f569a34543848f.html">gra</a></li><li class="navelem"><a class="el" href="Bitmap_8h.html">Bitmap.h</a></li>
    <li class="footer">Generated on Mon Jun 23 2014 17:02:02 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>