diff options
Diffstat (limited to 'doc/html/Photo_8h_source.html')
-rw-r--r-- | doc/html/Photo_8h_source.html | 517 |
1 files changed, 260 insertions, 257 deletions
diff --git a/doc/html/Photo_8h_source.html b/doc/html/Photo_8h_source.html index 293b508..b89c2f4 100644 --- a/doc/html/Photo_8h_source.html +++ b/doc/html/Photo_8h_source.html @@ -28,9 +28,9 @@ <td id="projectlogo"><img alt="Logo" src="logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">Templates -- Meow -  <span id="projectnumber">1.1.4</span> +  <span id="projectnumber">204.13.18</span> </div> - <div id="projectbrief">A C++ template which is unable and also not allowed to compile to obj-file first.</div> + <div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div> </td> </tr> </tbody> @@ -87,273 +87,276 @@ $(document).ready(function(){initNavTree('Photo_8h_source.html','');}); <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> bmp_;</div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> c_;</div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> proj_;</div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  Myself(): proj_(3) {</div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  Myself(Myself <span class="keyword">const</span>& b): bmp_(b.bmp_), c_(b.c_), proj_(b.proj_) {</div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  ~Myself() {</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  Myself(): proj_(3) {</div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  Myself(Myself <span class="keyword">const</span>& b): bmp_(b.bmp_), c_(b.c_), proj_(b.proj_) {</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  };</div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> <span class="keyword">self</span>;</div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> bitmapCoord(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& yx)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(yx.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() + <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>(), -yx.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() + <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>());</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092"> 59</a></span>  <a class="code" href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092">Photo</a>(): self() {</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">self</span>()->proj_.focal(1.0);</div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div> -<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a85f96086c9c4041ae14f0c1c9c6d23f8"> 70</a></span>  <a class="code" href="classmeow_1_1Photo.html#a85f96086c9c4041ae14f0c1c9c6d23f8">Photo</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b): self(b.self, <a class="code" href="classmeow_1_1Self.html">Self</a><Myself>::COPY_FROM) {</div> -<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div> -<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a66e6f809ee030d4b3d5c0d1edd7b641e"> 80</a></span>  <a class="code" href="classmeow_1_1Photo.html#a66e6f809ee030d4b3d5c0d1edd7b641e">Photo</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp): self() {</div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(bmp);</div> -<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div> -<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div> -<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a68137359863914ebedb467782b8ef440"> 92</a></span>  <a class="code" href="classmeow_1_1Photo.html#a68137359863914ebedb467782b8ef440">Photo</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f): self() {</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(bmp, f);</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="l00105"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#af69dcdd4ccd4c15227cf0b104325d8de"> 105</a></span>  <a class="code" href="classmeow_1_1Photo.html#af69dcdd4ccd4c15227cf0b104325d8de">Photo</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f, <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& c): self() {</div> -<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(bmp, f, c);</div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div> -<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ad3ba33208243966fe72db6c3a519e22d"> 112</a></span>  <a class="code" href="classmeow_1_1Photo.html#ad3ba33208243966fe72db6c3a519e22d">~Photo</a>() {</div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div> -<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6"> 120</a></span>  <a class="code" href="classmeow_1_1Photo.html">Photo</a>& <a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(b.self);</div> -<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div> -<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div> -<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1d51d273f9847c8c81de3acaafdf893f"> 130</a></span>  <a class="code" href="classmeow_1_1Photo.html">Photo</a>& <a class="code" href="classmeow_1_1Photo.html#a1d51d273f9847c8c81de3acaafdf893f">referneceFrom</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">self</span>().referenceFrom(b.self);</div> -<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> -<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div> -<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div> -<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3"> 142</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp) {</div> -<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>(bmp);</div> -<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(sqrt(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(<a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a>()) + <a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(<a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>())));</div> -<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(bmp.<a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>() / 2, bmp.<a class="code" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">height</a>() / 2));</div> -<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  }</div> -<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div> -<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#aed3ed47ee1ddae0732e24af71b91a7b0"> 156</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Photo.html#aed3ed47ee1ddae0732e24af71b91a7b0">reset</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f) {</div> -<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>(bmp);</div> -<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(f);</div> -<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(bmp.<a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>() / 2, bmp.<a class="code" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">height</a>() / 2));</div> -<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  }</div> -<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div> -<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a4d237ed59e6227940c20831cdce797a8"> 169</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Photo.html#a4d237ed59e6227940c20831cdce797a8">reset</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f, <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& c) {</div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>(bmp);</div> -<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(f);</div> -<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>(c);</div> -<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  }</div> -<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div> -<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62"> 178</a></span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_;</div> -<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  }</div> -<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div> -<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7"> 185</a></span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a>& <a class="code" href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7">bitmapGet</a>() {</div> -<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->bmp_;</div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  }</div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div> -<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a511f65855ee9f102c2472ce236ba7d3c"> 195</a></span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a511f65855ee9f102c2472ce236ba7d3c">bitmap</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp) {</div> -<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">self</span>()->bmp_.copyFrom(bmp);</div> -<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>();</div> -<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  }</div> -<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div> -<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4"> 203</a></span>  <span class="keywordtype">double</span> <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->proj_.focal();</div> -<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  }</div> -<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div> -<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1fbde3a8b2be3662cf67a035cf887be9"> 213</a></span>  <span class="keywordtype">double</span> <a class="code" href="classmeow_1_1Photo.html#a1fbde3a8b2be3662cf67a035cf887be9">focal</a>(<span class="keywordtype">double</span> f) {</div> -<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keyword">self</span>()->proj_.focal(f);</div> -<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>();</div> -<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  }</div> -<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  </div> -<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a"> 221</a></span>  <a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> <a class="code" href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a">projection</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->proj_;</div> -<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div> -<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div> -<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#aeb8878b9c809b8c6385bfadd3c0dd984"> 228</a></span>  <a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> <a class="code" href="classmeow_1_1Photo.html#aeb8878b9c809b8c6385bfadd3c0dd984">projection</a>(<a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> <span class="keyword">const</span>& p) {</div> -<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">if</span> (p.<a class="code" href="classmeow_1_1PhotoProjection.html#a8bc014829f304ae83da2862fcf4f6dce">dimension</a>() == 3) {</div> -<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keyword">self</span>()->proj_ = p;</div> -<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  }</div> -<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a">projection</a>();</div> -<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div> -<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div> -<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c"> 240</a></span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->c_;</div> -<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  }</div> -<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div> -<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c"> 249</a></span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>& <a class="code" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">centerGet</a>() {</div> -<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->c_;</div> -<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  }</div> -<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div> -<div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a563850b9827f24d6d0be5c63e408d253"> 260</a></span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a563850b9827f24d6d0be5c63e408d253">center</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& c) {</div> -<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keyword">self</span>()->c_ = c;</div> -<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>();</div> -<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  }</div> -<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  </div> -<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c"> 268</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_.width();</div> -<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  }</div> -<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div> -<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d"> 275</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_.height();</div> -<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  }</div> -<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div> -<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e"> 282</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e">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="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_.pixel(y, x);</div> -<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  }</div> -<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div> -<div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a38c943a8bd30b309a8042599dcf9f1e7"> 289</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#a38c943a8bd30b309a8042599dcf9f1e7">pixel</a>(<span class="keywordtype">size_t</span> y, <span class="keywordtype">size_t</span> x, Pixel <span class="keyword">const</span>& p) {</div> -<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">self</span>()->bmp_.pixel(y, x, p);</div> -<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e">pixel</a>(y, x);</div> -<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  }</div> -<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  </div> -<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66"> 301</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">inside</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& yx)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> c = bitmapCoord(yx);</div> -<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  ssize_t h_max = (ssize_t)<a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>() - 1;</div> -<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  ssize_t w_max = (ssize_t)<a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a> () - 1;</div> -<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordflow">return</span> (0 <= c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() && c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() <= h_max && 0 <= c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() && c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() <= w_max);</div> -<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  }</div> -<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  </div> -<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a43ac8952d85ea584dc9ea9a0424dbb98"> 315</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#a43ac8952d85ea584dc9ea9a0424dbb98">inside</a>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D<double></a> <span class="keyword">const</span>& p)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">if</span> (p.<a class="code" href="classmeow_1_1Vector3D.html#a2d3855af7fd18b94faa89cceffa3d950">z</a>() > 0) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">inside</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(self->proj_.transformate(p.<a class="code" href="classmeow_1_1Vector3D.html#ae03fb93d06c60fd2901875ead10c8c72">matrix</a>())));</div> -<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  }</div> -<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  </div> -<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1"> 329</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1">color</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& yx)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">if</span> (!<a class="code" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">inside</a>(yx)) <span class="keywordflow">return</span> Pixel(0);</div> -<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> c(bitmapCoord(yx));</div> -<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordtype">int</span> y0 = (<a class="code" href="classint.html">int</a>)c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>();</div> -<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">int</span> x0 = (<a class="code" href="classint.html">int</a>)c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>();</div> -<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordtype">double</span> h[2] = {1 - (c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() - y0), c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() - y0};</div> -<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordtype">double</span> w[2] = {1 - (c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() - x0), c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() - x0};</div> -<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  Pixel sum(0);</div> -<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> dy = 0; dy < 2; dy++)</div> -<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> dx = 0; dx < 2; dx++) {</div> -<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  sum = sum + <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>().pixel(</div> -<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  std::min(y0 + dy, (<span class="keywordtype">int</span>)<a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>() - 1),</div> -<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  std::min(x0 + dx, (<span class="keywordtype">int</span>)<a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a> () - 1)) * (w[dy] * h[dx]);</div> -<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  }</div> -<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordflow">return</span> sum;</div> -<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  }</div> -<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  </div> -<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a95c01aa8e4b620c8290a3054663e41f4"> 354</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#a95c01aa8e4b620c8290a3054663e41f4">color</a>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D<double></a> <span class="keyword">const</span>& p)<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1">color</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(self->proj_.transformate(p.<a class="code" href="classmeow_1_1Vector3D.html#ae03fb93d06c60fd2901875ead10c8c72">matrix</a>())));</div> -<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  }</div> -<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  </div> -<div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab97f03da439edeb8834fd6e7a3487f65"> 361</a></span>  <a class="code" href="classmeow_1_1Photo.html">Photo</a>& <a class="code" href="classmeow_1_1Photo.html#ab97f03da439edeb8834fd6e7a3487f65">operator=</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b) {</div> -<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(b);</div> -<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  }</div> -<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  </div> -<div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952"> 369</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952">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="l00370"></a><span class="lineno"> 370</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>().<a class="code" href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952">write</a>(f, bin, fg) == <span class="keyword">false</span>) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keywordflow">if</span> (bin) {</div> -<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordtype">double</span> tmp;</div> -<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().x()), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().y()), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>()), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  }</div> -<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">else</span> {</div> -<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%f %f\n"</span>, <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().x(), <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().y()) < 2) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%f\n"</span>, <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>()) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  }</div> -<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> -<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  }</div> -<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  </div> -<div class="line"><a name="l00388"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50"> 388</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50">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="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7">bitmapGet</a>().<a class="code" href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50">read</a>(f, bin, fg) == <span class="keyword">false</span>) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordtype">double</span> tmp[3];</div> -<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">if</span> (bin) {</div> -<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">if</span> (fread(tmp, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>), 3, f) < 3) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> -<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  }</div> -<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">else</span> {</div> -<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordflow">if</span> (fscanf(f, <span class="stringliteral">"%lf %lf %lf"</span>, tmp + 0, tmp + 1, tmp + 2) < 3) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  ~Myself() {</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  };</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classmeow_1_1Self.html">Self<Myself></a> <span class="keyword">const</span> <span class="keyword">self</span>;</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> bitmapCoord(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& yx)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(yx.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() + <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>(), -yx.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() + <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>());</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092"> 62</a></span>  <a class="code" href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092">Photo</a>(): self() {</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">self</span>()->proj_.focal(1.0);</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> +<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a85f96086c9c4041ae14f0c1c9c6d23f8"> 73</a></span>  <a class="code" href="classmeow_1_1Photo.html#a85f96086c9c4041ae14f0c1c9c6d23f8">Photo</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b): self(b.self, <a class="code" href="classmeow_1_1Self.html">Self</a><Myself>::COPY_FROM) {</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> +<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a66e6f809ee030d4b3d5c0d1edd7b641e"> 83</a></span>  <a class="code" href="classmeow_1_1Photo.html#a66e6f809ee030d4b3d5c0d1edd7b641e">Photo</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp): self() {</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(bmp);</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a68137359863914ebedb467782b8ef440"> 95</a></span>  <a class="code" href="classmeow_1_1Photo.html#a68137359863914ebedb467782b8ef440">Photo</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f): self() {</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(bmp, f);</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div> +<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#af69dcdd4ccd4c15227cf0b104325d8de"> 108</a></span>  <a class="code" href="classmeow_1_1Photo.html#af69dcdd4ccd4c15227cf0b104325d8de">Photo</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f, <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& c): self() {</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(bmp, f, c);</div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div> +<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ad3ba33208243966fe72db6c3a519e22d"> 115</a></span>  <a class="code" href="classmeow_1_1Photo.html#ad3ba33208243966fe72db6c3a519e22d">~Photo</a>() {</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  }</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div> +<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6"> 123</a></span>  <a class="code" href="classmeow_1_1Photo.html">Photo</a>& <a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">self</span>().<a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(b.self);</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div> +<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1d51d273f9847c8c81de3acaafdf893f"> 133</a></span>  <a class="code" href="classmeow_1_1Photo.html">Photo</a>& <a class="code" href="classmeow_1_1Photo.html#a1d51d273f9847c8c81de3acaafdf893f">referneceFrom</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">self</span>().referenceFrom(b.self);</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div> +<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3"> 145</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">reset</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp) {</div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>(bmp);</div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(sqrt(<a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(<a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a>()) + <a class="code" href="namespacemeow.html#a1954e235973a2ac79a7a72a4b7d25573">squ</a>(<a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>())));</div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(bmp.<a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>() / 2, bmp.<a class="code" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">height</a>() / 2));</div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  }</div> +<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div> +<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#aed3ed47ee1ddae0732e24af71b91a7b0"> 159</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Photo.html#aed3ed47ee1ddae0732e24af71b91a7b0">reset</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f) {</div> +<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>(bmp);</div> +<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(f);</div> +<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(bmp.<a class="code" href="classmeow_1_1Bitmap.html#ad8476258a0f9deefdb7170d53949d3ed">width</a>() / 2, bmp.<a class="code" href="classmeow_1_1Bitmap.html#a2290360ab49bdf1f33dc717fce71d5df">height</a>() / 2));</div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  }</div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div> +<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a4d237ed59e6227940c20831cdce797a8"> 172</a></span>  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1Photo.html#a4d237ed59e6227940c20831cdce797a8">reset</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp, <span class="keywordtype">double</span> f, <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& c) {</div> +<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>(bmp);</div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(f);</div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>(c);</div> +<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  }</div> +<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div> +<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62"> 181</a></span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_;</div> +<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div> +<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div> +<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7"> 188</a></span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a>& <a class="code" href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7">bitmapGet</a>() {</div> +<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->bmp_;</div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div> +<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div> +<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a511f65855ee9f102c2472ce236ba7d3c"> 198</a></span>  <a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a511f65855ee9f102c2472ce236ba7d3c">bitmap</a>(<a class="code" href="classmeow_1_1Bitmap.html">Bitmap<Pixel></a> <span class="keyword">const</span>& bmp) {</div> +<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keyword">self</span>()->bmp_.copyFrom(bmp);</div> +<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>();</div> +<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div> +<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div> +<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4"> 206</a></span>  <span class="keywordtype">double</span> <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->proj_.focal();</div> +<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div> +<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div> +<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1fbde3a8b2be3662cf67a035cf887be9"> 216</a></span>  <span class="keywordtype">double</span> <a class="code" href="classmeow_1_1Photo.html#a1fbde3a8b2be3662cf67a035cf887be9">focal</a>(<span class="keywordtype">double</span> f) {</div> +<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">self</span>()->proj_.focal(f);</div> +<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>();</div> +<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  }</div> +<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div> +<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a"> 224</a></span>  <a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> <a class="code" href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a">projection</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->proj_;</div> +<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div> +<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div> +<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#aeb8878b9c809b8c6385bfadd3c0dd984"> 231</a></span>  <a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> <a class="code" href="classmeow_1_1Photo.html#aeb8878b9c809b8c6385bfadd3c0dd984">projection</a>(<a class="code" href="classmeow_1_1PhotoProjection.html">PhotoProjection<double></a> <span class="keyword">const</span>& p) {</div> +<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">if</span> (p.<a class="code" href="classmeow_1_1PhotoProjection.html#a8bc014829f304ae83da2862fcf4f6dce">dimension</a>() == 3) {</div> +<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">self</span>()->proj_ = p;</div> +<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  }</div> +<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a">projection</a>();</div> +<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div> +<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div> +<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c"> 243</a></span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->c_;</div> +<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div> +<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div> +<div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c"> 252</a></span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>& <a class="code" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">centerGet</a>() {</div> +<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>()->c_;</div> +<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  }</div> +<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div> +<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a563850b9827f24d6d0be5c63e408d253"> 263</a></span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& <a class="code" href="classmeow_1_1Photo.html#a563850b9827f24d6d0be5c63e408d253">center</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& c) {</div> +<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keyword">self</span>()->c_ = c;</div> +<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>();</div> +<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  }</div> +<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div> +<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c"> 271</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_.width();</div> +<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  }</div> +<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div> +<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d"> 278</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_.height();</div> +<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  }</div> +<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div> +<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e"> 285</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e">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="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">return</span> <span class="keyword">self</span>->bmp_.pixel(y, x);</div> +<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  }</div> +<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div> +<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a38c943a8bd30b309a8042599dcf9f1e7"> 292</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#a38c943a8bd30b309a8042599dcf9f1e7">pixel</a>(<span class="keywordtype">size_t</span> y, <span class="keywordtype">size_t</span> x, Pixel <span class="keyword">const</span>& p) {</div> +<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keyword">self</span>()->bmp_.pixel(y, x, p);</div> +<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e">pixel</a>(y, x);</div> +<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  }</div> +<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div> +<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66"> 304</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">inside</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& yx)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> c = bitmapCoord(yx);</div> +<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  ssize_t h_max = (ssize_t)<a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>() - 1;</div> +<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  ssize_t w_max = (ssize_t)<a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a> () - 1;</div> +<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">return</span> (0 <= c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() && c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() <= h_max && 0 <= c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() && c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() <= w_max);</div> +<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }</div> +<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div> +<div class="line"><a name="l00318"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a43ac8952d85ea584dc9ea9a0424dbb98"> 318</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#a43ac8952d85ea584dc9ea9a0424dbb98">inside</a>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D<double></a> <span class="keyword">const</span>& p)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordflow">if</span> (p.<a class="code" href="classmeow_1_1Vector3D.html#a2d3855af7fd18b94faa89cceffa3d950">z</a>() > 0) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">inside</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(self->proj_.transformate(p.<a class="code" href="classmeow_1_1Vector3D.html#ae03fb93d06c60fd2901875ead10c8c72">matrix</a>())));</div> +<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  }</div> +<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> </div> +<div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1"> 332</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1">color</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> <span class="keyword">const</span>& yx)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">if</span> (!<a class="code" href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">inside</a>(yx)) <span class="keywordflow">return</span> Pixel(0);</div> +<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a> c(bitmapCoord(yx));</div> +<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordtype">int</span> y0 = (<a class="code" href="classint.html">int</a>)c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>();</div> +<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordtype">int</span> x0 = (<a class="code" href="classint.html">int</a>)c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>();</div> +<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordtype">double</span> h[2] = {1 - (c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() - y0), c.<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>() - y0};</div> +<div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordtype">double</span> w[2] = {1 - (c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() - x0), c.<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>() - x0};</div> +<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  Pixel sum(0);</div> +<div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> dy = 0; dy < 2; dy++)</div> +<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> dx = 0; dx < 2; dx++) {</div> +<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  sum = sum + <a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>().pixel(</div> +<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  std::min(y0 + dy, (<span class="keywordtype">int</span>)<a class="code" href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">height</a>() - 1),</div> +<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  std::min(x0 + dx, (<span class="keywordtype">int</span>)<a class="code" href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">width</a> () - 1)) * (w[dy] * h[dx]);</div> +<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  }</div> +<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keywordflow">return</span> sum;</div> +<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div> +<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div> +<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a95c01aa8e4b620c8290a3054663e41f4"> 357</a></span>  Pixel <a class="code" href="classmeow_1_1Photo.html#a95c01aa8e4b620c8290a3054663e41f4">color</a>(<a class="code" href="classmeow_1_1Vector3D.html">Vector3D<double></a> <span class="keyword">const</span>& p)<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1">color</a>(<a class="code" href="classmeow_1_1Vector2D.html">Vector2D<double></a>(self->proj_.transformate(p.<a class="code" href="classmeow_1_1Vector3D.html#ae03fb93d06c60fd2901875ead10c8c72">matrix</a>())));</div> +<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  }</div> +<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div> +<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab97f03da439edeb8834fd6e7a3487f65"> 364</a></span>  <a class="code" href="classmeow_1_1Photo.html">Photo</a>& <a class="code" href="classmeow_1_1Photo.html#ab97f03da439edeb8834fd6e7a3487f65">operator=</a>(<a class="code" href="classmeow_1_1Photo.html">Photo</a> <span class="keyword">const</span>& b) {</div> +<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordflow">return</span> <a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(b);</div> +<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  }</div> +<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div> +<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952"> 372</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952">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="l00373"></a><span class="lineno"> 373</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">bitmap</a>().<a class="code" href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952">write</a>(f, bin, fg) == <span class="keyword">false</span>) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordflow">if</span> (bin) {</div> +<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordtype">double</span> tmp;</div> +<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().x()), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().y()), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="keywordflow">if</span> (fwrite(&(tmp = <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>()), <span class="keyword">sizeof</span>(tmp), 1, f) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  }</div> +<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%f %f\n"</span>, <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().x(), <a class="code" href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">center</a>().y()) < 2) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keywordflow">if</span> (fprintf(f, <span class="stringliteral">"%f\n"</span>, <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>()) < 1) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  }</div> +<div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> +<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  }</div> +<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div> +<div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50"> 391</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50">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="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">if</span> (<a class="code" href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7">bitmapGet</a>().<a class="code" href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50">read</a>(f, bin, fg) == <span class="keyword">false</span>) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordtype">double</span> tmp[3];</div> +<div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordflow">if</span> (bin) {</div> +<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordflow">if</span> (fread(tmp, <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>), 3, f) < 3) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> <div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  }</div> -<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <a class="code" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">centerGet</a>().<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>(tmp[0]);</div> -<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">centerGet</a>().<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>(tmp[1]);</div> -<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(tmp[2]);</div> -<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> -<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div> -<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div> -<div class="line"><a name="l00407"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a449f74fa427154f943d6abee255431aa"> 407</a></span>  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1Photo.html#a449f74fa427154f943d6abee255431aa">create</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092">Photo</a>();</div> -<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  }</div> -<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  </div> -<div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a0e947011dcb0db21760c89663acd2208"> 420</a></span>  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1Photo.html#a0e947011dcb0db21760c89663acd2208">copyFrom</a>(<a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> <span class="keyword">const</span>* b) {</div> -<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">return</span> &(<a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(*(<a class="code" href="classmeow_1_1Photo.html">Photo</a>*)b));</div> -<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  }</div> -<div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  </div> -<div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9"> 428</a></span>  <span class="keywordtype">char</span> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9">ctype</a>()<span class="keyword"> const</span>{</div> -<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">return</span> <span class="keyword">typeid</span>(*this).name();</div> -<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  }</div> -<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  </div> -<div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a84cf3012af5e67b4aafc1ee7eafd70d1"> 436</a></span>  std::string <a class="code" href="classmeow_1_1Photo.html#a84cf3012af5e67b4aafc1ee7eafd70d1">type</a>()<span class="keyword"> const </span>{</div> -<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keywordflow">return</span> std::string(<a class="code" href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9">ctype</a>());</div> -<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  }</div> -<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> };</div> -<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  </div> -<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> } <span class="comment">// meow</span></div> -<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div> -<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> <span class="preprocessor">#endif // gra_Photo_H__</span></div> -<div class="ttc" id="classmeow_1_1Photo_html_aeb8878b9c809b8c6385bfadd3c0dd984"><div class="ttname"><a href="classmeow_1_1Photo.html#aeb8878b9c809b8c6385bfadd3c0dd984">meow::Photo::projection</a></div><div class="ttdeci">PhotoProjection< double > projection(PhotoProjection< double > const &p)</div><div class="ttdoc">設定 photo projection </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00228">Photo.h:228</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_ab7b4b1f6b3f8100ea670500f168cb1e4"><div class="ttname"><a href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">meow::Photo::focal</a></div><div class="ttdeci">double focal() const </div><div class="ttdoc">回傳focal length </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00203">Photo.h:203</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a49ada6e814bd2280af12183897227e62"><div class="ttname"><a href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">meow::Photo::bitmap</a></div><div class="ttdeci">Bitmap< Pixel > const & bitmap() const </div><div class="ttdoc">回傳bitmap </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00178">Photo.h:178</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_aed3ed47ee1ddae0732e24af71b91a7b0"><div class="ttname"><a href="classmeow_1_1Photo.html#aed3ed47ee1ddae0732e24af71b91a7b0">meow::Photo::reset</a></div><div class="ttdeci">void reset(Bitmap< Pixel > const &bmp, double f)</div><div class="ttdoc">重設bitmap, focal </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00156">Photo.h:156</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a19976fbe55a9d7e17baac9460d5b829c"><div class="ttname"><a href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">meow::Photo::centerGet</a></div><div class="ttdeci">Vector2D< double > & centerGet()</div><div class="ttdoc">取得照片中心點底片座標 (non-constant reference) </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00249">Photo.h:249</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a9fed32356d142cc4ee2c141ff894a49a"><div class="ttname"><a href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a">meow::Photo::projection</a></div><div class="ttdeci">PhotoProjection< double > projection() const </div><div class="ttdoc">回傳相應的 photo projection </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00221">Photo.h:221</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a449f74fa427154f943d6abee255431aa"><div class="ttname"><a href="classmeow_1_1Photo.html#a449f74fa427154f943d6abee255431aa">meow::Photo::create</a></div><div class="ttdeci">ObjBase * create() const </div><div class="ttdoc">new一個自己 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00407">Photo.h:407</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="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordflow">else</span> {</div> +<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordflow">if</span> (fscanf(f, <span class="stringliteral">"%lf %lf %lf"</span>, tmp + 0, tmp + 1, tmp + 2) < 3) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  }</div> +<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">centerGet</a>().<a class="code" href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">x</a>(tmp[0]);</div> +<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <a class="code" href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">centerGet</a>().<a class="code" href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">y</a>(tmp[1]);</div> +<div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <a class="code" href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">focal</a>(tmp[2]);</div> +<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> +<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  }</div> +<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div> +<div class="line"><a name="l00410"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a449f74fa427154f943d6abee255431aa"> 410</a></span>  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1Photo.html#a449f74fa427154f943d6abee255431aa">create</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092">Photo</a>();</div> +<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  }</div> +<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> </div> +<div class="line"><a name="l00423"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a0e947011dcb0db21760c89663acd2208"> 423</a></span>  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1Photo.html#a0e947011dcb0db21760c89663acd2208">copyFrom</a>(<a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> <span class="keyword">const</span>* b) {</div> +<div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keywordflow">return</span> &(<a class="code" href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">copyFrom</a>(*(<a class="code" href="classmeow_1_1Photo.html">Photo</a>*)b));</div> +<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  }</div> +<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div> +<div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9"> 431</a></span>  <span class="keywordtype">char</span> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9">ctype</a>()<span class="keyword"> const</span>{</div> +<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordflow">return</span> <span class="keyword">typeid</span>(*this).name();</div> +<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  }</div> +<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> </div> +<div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="classmeow_1_1Photo.html#a84cf3012af5e67b4aafc1ee7eafd70d1"> 439</a></span>  std::string <a class="code" href="classmeow_1_1Photo.html#a84cf3012af5e67b4aafc1ee7eafd70d1">type</a>()<span class="keyword"> const </span>{</div> +<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  <span class="keywordflow">return</span> std::string(<a class="code" href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9">ctype</a>());</div> +<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  }</div> +<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> };</div> +<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> </div> +<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> } <span class="comment">// meow</span></div> +<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div> +<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> <span class="preprocessor">#endif // gra_Photo_H__</span></div> +<div class="ttc" id="classmeow_1_1Photo_html_aeb8878b9c809b8c6385bfadd3c0dd984"><div class="ttname"><a href="classmeow_1_1Photo.html#aeb8878b9c809b8c6385bfadd3c0dd984">meow::Photo::projection</a></div><div class="ttdeci">PhotoProjection< double > projection(PhotoProjection< double > const &p)</div><div class="ttdoc">設定 photo projection </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00231">Photo.h:231</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_ab7b4b1f6b3f8100ea670500f168cb1e4"><div class="ttname"><a href="classmeow_1_1Photo.html#ab7b4b1f6b3f8100ea670500f168cb1e4">meow::Photo::focal</a></div><div class="ttdeci">double focal() const </div><div class="ttdoc">回傳focal length </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00206">Photo.h:206</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a49ada6e814bd2280af12183897227e62"><div class="ttname"><a href="classmeow_1_1Photo.html#a49ada6e814bd2280af12183897227e62">meow::Photo::bitmap</a></div><div class="ttdeci">Bitmap< Pixel > const & bitmap() const </div><div class="ttdoc">回傳bitmap </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00181">Photo.h:181</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_aed3ed47ee1ddae0732e24af71b91a7b0"><div class="ttname"><a href="classmeow_1_1Photo.html#aed3ed47ee1ddae0732e24af71b91a7b0">meow::Photo::reset</a></div><div class="ttdeci">void reset(Bitmap< Pixel > const &bmp, double f)</div><div class="ttdoc">重設bitmap, focal </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00159">Photo.h:159</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a19976fbe55a9d7e17baac9460d5b829c"><div class="ttname"><a href="classmeow_1_1Photo.html#a19976fbe55a9d7e17baac9460d5b829c">meow::Photo::centerGet</a></div><div class="ttdeci">Vector2D< double > & centerGet()</div><div class="ttdoc">取得照片中心點底片座標 (non-constant reference) </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00252">Photo.h:252</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a9fed32356d142cc4ee2c141ff894a49a"><div class="ttname"><a href="classmeow_1_1Photo.html#a9fed32356d142cc4ee2c141ff894a49a">meow::Photo::projection</a></div><div class="ttdeci">PhotoProjection< double > projection() const </div><div class="ttdoc">回傳相應的 photo projection </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00224">Photo.h:224</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a449f74fa427154f943d6abee255431aa"><div class="ttname"><a href="classmeow_1_1Photo.html#a449f74fa427154f943d6abee255431aa">meow::Photo::create</a></div><div class="ttdeci">ObjBase * create() const </div><div class="ttdoc">new一個自己 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00410">Photo.h:410</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#l00146">Bitmap.h:146</a></div></div> <div class="ttc" id="classmeow_1_1Vector2D_html_a1bb0d1ce4954e56b8b0f166b928816a3"><div class="ttname"><a href="classmeow_1_1Vector2D.html#a1bb0d1ce4954e56b8b0f166b928816a3">meow::Vector2D::x</a></div><div class="ttdeci">Scalar const & x() const </div><div class="ttdoc">access x </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00056">Vectors.h:56</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a93fdf3b617d8b1c751823074fca049a9"><div class="ttname"><a href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9">meow::Photo::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="Photo_8h_source.html#l00428">Photo.h:428</a></div></div> -<div class="ttc" id="classmeow_1_1Vector3D_html_a2d3855af7fd18b94faa89cceffa3d950"><div class="ttname"><a href="classmeow_1_1Vector3D.html#a2d3855af7fd18b94faa89cceffa3d950">meow::Vector3D::z</a></div><div class="ttdeci">Scalar const & z() const </div><div class="ttdoc">access z </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00305">Vectors.h:305</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a511f65855ee9f102c2472ce236ba7d3c"><div class="ttname"><a href="classmeow_1_1Photo.html#a511f65855ee9f102c2472ce236ba7d3c">meow::Photo::bitmap</a></div><div class="ttdeci">Bitmap< Pixel > const & bitmap(Bitmap< Pixel > const &bmp)</div><div class="ttdoc">設定bitmap </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00195">Photo.h:195</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a84cf3012af5e67b4aafc1ee7eafd70d1"><div class="ttname"><a href="classmeow_1_1Photo.html#a84cf3012af5e67b4aafc1ee7eafd70d1">meow::Photo::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="Photo_8h_source.html#l00436">Photo.h:436</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a97cc535d734fdf53457c84ef5f0bdc50"><div class="ttname"><a href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50">meow::Photo::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="Photo_8h_source.html#l00388">Photo.h:388</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a1fbde3a8b2be3662cf67a035cf887be9"><div class="ttname"><a href="classmeow_1_1Photo.html#a1fbde3a8b2be3662cf67a035cf887be9">meow::Photo::focal</a></div><div class="ttdeci">double focal(double f)</div><div class="ttdoc">設定 focal length </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00213">Photo.h:213</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_ab5a901c44b8c5523def9b40f27a5fda3"><div class="ttname"><a href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">meow::Photo::reset</a></div><div class="ttdeci">void reset(Bitmap< Pixel > const &bmp)</div><div class="ttdoc">重設bitmap, focal 用猜的 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00142">Photo.h:142</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_1Photo_html_a3489796a4101da9291fff280cb89728e"><div class="ttname"><a href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e">meow::Photo::pixel</a></div><div class="ttdeci">Pixel pixel(size_t y, size_t x) const </div><div class="ttdoc">回傳bitmap的某pixel </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00282">Photo.h:282</a></div></div> -<div class="ttc" id="classmeow_1_1PhotoProjection_html_a8bc014829f304ae83da2862fcf4f6dce"><div class="ttname"><a href="classmeow_1_1PhotoProjection.html#a8bc014829f304ae83da2862fcf4f6dce">meow::PhotoProjection::dimension</a></div><div class="ttdeci">size_t dimension() const </div><div class="ttdoc">Get the dimension of this projection. </div><div class="ttdef"><b>Definition:</b> <a href="Transformations_8h_source.html#l00425">Transformations.h:425</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a1a0582b5c3683264fcad5ca67b376f7c"><div class="ttname"><a href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">meow::Photo::width</a></div><div class="ttdeci">size_t width() const </div><div class="ttdoc">回傳bitmap寬 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00268">Photo.h:268</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_1Photo_html_a68137359863914ebedb467782b8ef440"><div class="ttname"><a href="classmeow_1_1Photo.html#a68137359863914ebedb467782b8ef440">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Bitmap< Pixel > const &bmp, double f)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00092">Photo.h:92</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a66e6f809ee030d4b3d5c0d1edd7b641e"><div class="ttname"><a href="classmeow_1_1Photo.html#a66e6f809ee030d4b3d5c0d1edd7b641e">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Bitmap< Pixel > const &bmp)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00080">Photo.h:80</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a93fdf3b617d8b1c751823074fca049a9"><div class="ttname"><a href="classmeow_1_1Photo.html#a93fdf3b617d8b1c751823074fca049a9">meow::Photo::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="Photo_8h_source.html#l00431">Photo.h:431</a></div></div> +<div class="ttc" id="classmeow_1_1Vector3D_html_a2d3855af7fd18b94faa89cceffa3d950"><div class="ttname"><a href="classmeow_1_1Vector3D.html#a2d3855af7fd18b94faa89cceffa3d950">meow::Vector3D::z</a></div><div class="ttdeci">Scalar const & z() const </div><div class="ttdoc">access z </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00315">Vectors.h:315</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a511f65855ee9f102c2472ce236ba7d3c"><div class="ttname"><a href="classmeow_1_1Photo.html#a511f65855ee9f102c2472ce236ba7d3c">meow::Photo::bitmap</a></div><div class="ttdeci">Bitmap< Pixel > const & bitmap(Bitmap< Pixel > const &bmp)</div><div class="ttdoc">設定bitmap </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00198">Photo.h:198</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a84cf3012af5e67b4aafc1ee7eafd70d1"><div class="ttname"><a href="classmeow_1_1Photo.html#a84cf3012af5e67b4aafc1ee7eafd70d1">meow::Photo::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="Photo_8h_source.html#l00439">Photo.h:439</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a97cc535d734fdf53457c84ef5f0bdc50"><div class="ttname"><a href="classmeow_1_1Photo.html#a97cc535d734fdf53457c84ef5f0bdc50">meow::Photo::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="Photo_8h_source.html#l00391">Photo.h:391</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a1fbde3a8b2be3662cf67a035cf887be9"><div class="ttname"><a href="classmeow_1_1Photo.html#a1fbde3a8b2be3662cf67a035cf887be9">meow::Photo::focal</a></div><div class="ttdeci">double focal(double f)</div><div class="ttdoc">設定 focal length </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00216">Photo.h:216</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_ab5a901c44b8c5523def9b40f27a5fda3"><div class="ttname"><a href="classmeow_1_1Photo.html#ab5a901c44b8c5523def9b40f27a5fda3">meow::Photo::reset</a></div><div class="ttdeci">void reset(Bitmap< Pixel > const &bmp)</div><div class="ttdoc">重設bitmap, focal 用猜的 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00145">Photo.h:145</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#l00025">Bitmap.h:25</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a3489796a4101da9291fff280cb89728e"><div class="ttname"><a href="classmeow_1_1Photo.html#a3489796a4101da9291fff280cb89728e">meow::Photo::pixel</a></div><div class="ttdeci">Pixel pixel(size_t y, size_t x) const </div><div class="ttdoc">回傳bitmap的某pixel </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00285">Photo.h:285</a></div></div> +<div class="ttc" id="classmeow_1_1PhotoProjection_html_a8bc014829f304ae83da2862fcf4f6dce"><div class="ttname"><a href="classmeow_1_1PhotoProjection.html#a8bc014829f304ae83da2862fcf4f6dce">meow::PhotoProjection::dimension</a></div><div class="ttdeci">size_t dimension() const </div><div class="ttdoc">Get the dimension of this projection. </div><div class="ttdef"><b>Definition:</b> <a href="Transformations_8h_source.html#l00427">Transformations.h:427</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a1a0582b5c3683264fcad5ca67b376f7c"><div class="ttname"><a href="classmeow_1_1Photo.html#a1a0582b5c3683264fcad5ca67b376f7c">meow::Photo::width</a></div><div class="ttdeci">size_t width() const </div><div class="ttdoc">回傳bitmap寬 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00271">Photo.h:271</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#l00153">Bitmap.h:153</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a68137359863914ebedb467782b8ef440"><div class="ttname"><a href="classmeow_1_1Photo.html#a68137359863914ebedb467782b8ef440">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Bitmap< Pixel > const &bmp, double f)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00095">Photo.h:95</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a66e6f809ee030d4b3d5c0d1edd7b641e"><div class="ttname"><a href="classmeow_1_1Photo.html#a66e6f809ee030d4b3d5c0d1edd7b641e">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Bitmap< Pixel > const &bmp)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00083">Photo.h:83</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_1Photo_html_a1d51d273f9847c8c81de3acaafdf893f"><div class="ttname"><a href="classmeow_1_1Photo.html#a1d51d273f9847c8c81de3acaafdf893f">meow::Photo::referneceFrom</a></div><div class="ttdeci">Photo & referneceFrom(Photo const &b)</div><div class="ttdoc">參照 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00130">Photo.h:130</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a53bc0c60fb3abd9e95999990c6f132e6"><div class="ttname"><a href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">meow::Photo::copyFrom</a></div><div class="ttdeci">Photo & copyFrom(Photo const &b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00120">Photo.h:120</a></div></div> -<div class="ttc" id="classmeow_1_1Vector3D_html_ae03fb93d06c60fd2901875ead10c8c72"><div class="ttname"><a href="classmeow_1_1Vector3D.html#ae03fb93d06c60fd2901875ead10c8c72">meow::Vector3D::matrix</a></div><div class="ttdeci">Matrix< Scalar > matrix() const </div><div class="ttdoc">return a 3x1 matrix form of itself </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00466">Vectors.h:466</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a07c8ca1846fc97005a7d960c5fc703a7"><div class="ttname"><a href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7">meow::Photo::bitmapGet</a></div><div class="ttdeci">Bitmap< Pixel > & bitmapGet()</div><div class="ttdoc">回傳bitmap 的參照(非constant) </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00185">Photo.h:185</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_aad526a7b9aecbcfebb12be76979ce7d1"><div class="ttname"><a href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1">meow::Photo::color</a></div><div class="ttdeci">Pixel color(Vector2D< double > const &yx) const </div><div class="ttdoc">取得給照片座標中某點的色彩 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00329">Photo.h:329</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a95c01aa8e4b620c8290a3054663e41f4"><div class="ttname"><a href="classmeow_1_1Photo.html#a95c01aa8e4b620c8290a3054663e41f4">meow::Photo::color</a></div><div class="ttdeci">Pixel color(Vector3D< double > const &p) const </div><div class="ttdoc">取得給照片座標中某點的色彩 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00354">Photo.h:354</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_af69dcdd4ccd4c15227cf0b104325d8de"><div class="ttname"><a href="classmeow_1_1Photo.html#af69dcdd4ccd4c15227cf0b104325d8de">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Bitmap< Pixel > const &bmp, double f, Vector2D< double > const &c)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00105">Photo.h:105</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a1d51d273f9847c8c81de3acaafdf893f"><div class="ttname"><a href="classmeow_1_1Photo.html#a1d51d273f9847c8c81de3acaafdf893f">meow::Photo::referneceFrom</a></div><div class="ttdeci">Photo & referneceFrom(Photo const &b)</div><div class="ttdoc">參照 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00133">Photo.h:133</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a53bc0c60fb3abd9e95999990c6f132e6"><div class="ttname"><a href="classmeow_1_1Photo.html#a53bc0c60fb3abd9e95999990c6f132e6">meow::Photo::copyFrom</a></div><div class="ttdeci">Photo & copyFrom(Photo const &b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00123">Photo.h:123</a></div></div> +<div class="ttc" id="classmeow_1_1Vector3D_html_ae03fb93d06c60fd2901875ead10c8c72"><div class="ttname"><a href="classmeow_1_1Vector3D.html#ae03fb93d06c60fd2901875ead10c8c72">meow::Vector3D::matrix</a></div><div class="ttdeci">Matrix< Scalar > matrix() const </div><div class="ttdoc">return a 3x1 matrix form of itself </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00486">Vectors.h:486</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a07c8ca1846fc97005a7d960c5fc703a7"><div class="ttname"><a href="classmeow_1_1Photo.html#a07c8ca1846fc97005a7d960c5fc703a7">meow::Photo::bitmapGet</a></div><div class="ttdeci">Bitmap< Pixel > & bitmapGet()</div><div class="ttdoc">回傳bitmap 的參照(非constant) </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00188">Photo.h:188</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_aad526a7b9aecbcfebb12be76979ce7d1"><div class="ttname"><a href="classmeow_1_1Photo.html#aad526a7b9aecbcfebb12be76979ce7d1">meow::Photo::color</a></div><div class="ttdeci">Pixel color(Vector2D< double > const &yx) const </div><div class="ttdoc">取得給照片座標中某點的色彩 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00332">Photo.h:332</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a95c01aa8e4b620c8290a3054663e41f4"><div class="ttname"><a href="classmeow_1_1Photo.html#a95c01aa8e4b620c8290a3054663e41f4">meow::Photo::color</a></div><div class="ttdeci">Pixel color(Vector3D< double > const &p) const </div><div class="ttdoc">取得給照片座標中某點的色彩 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00357">Photo.h:357</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_af69dcdd4ccd4c15227cf0b104325d8de"><div class="ttname"><a href="classmeow_1_1Photo.html#af69dcdd4ccd4c15227cf0b104325d8de">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Bitmap< Pixel > const &bmp, double f, Vector2D< double > const &c)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00108">Photo.h:108</a></div></div> <div class="ttc" id="classmeow_1_1Vector3D_html"><div class="ttname"><a href="classmeow_1_1Vector3D.html">meow::Vector3D< double ></a></div></div> <div class="ttc" id="Bitmap_8h_html"><div class="ttname"><a href="Bitmap_8h.html">Bitmap.h</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a38c943a8bd30b309a8042599dcf9f1e7"><div class="ttname"><a href="classmeow_1_1Photo.html#a38c943a8bd30b309a8042599dcf9f1e7">meow::Photo::pixel</a></div><div class="ttdeci">Pixel pixel(size_t y, size_t x, Pixel const &p)</div><div class="ttdoc">設定某pixel </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00289">Photo.h:289</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a563850b9827f24d6d0be5c63e408d253"><div class="ttname"><a href="classmeow_1_1Photo.html#a563850b9827f24d6d0be5c63e408d253">meow::Photo::center</a></div><div class="ttdeci">Vector2D< double > const & center(Vector2D< double > const &c)</div><div class="ttdoc">設定照片中心點底片座標 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00260">Photo.h:260</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a38c943a8bd30b309a8042599dcf9f1e7"><div class="ttname"><a href="classmeow_1_1Photo.html#a38c943a8bd30b309a8042599dcf9f1e7">meow::Photo::pixel</a></div><div class="ttdeci">Pixel pixel(size_t y, size_t x, Pixel const &p)</div><div class="ttdoc">設定某pixel </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00292">Photo.h:292</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a563850b9827f24d6d0be5c63e408d253"><div class="ttname"><a href="classmeow_1_1Photo.html#a563850b9827f24d6d0be5c63e408d253">meow::Photo::center</a></div><div class="ttdeci">Vector2D< double > const & center(Vector2D< double > const &c)</div><div class="ttdoc">設定照片中心點底片座標 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00263">Photo.h:263</a></div></div> <div class="ttc" id="classmeow_1_1Photo_html"><div class="ttname"><a href="classmeow_1_1Photo.html">meow::Photo</a></div><div class="ttdoc">底片 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00031">Photo.h:31</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a4d237ed59e6227940c20831cdce797a8"><div class="ttname"><a href="classmeow_1_1Photo.html#a4d237ed59e6227940c20831cdce797a8">meow::Photo::reset</a></div><div class="ttdeci">void reset(Bitmap< Pixel > const &bmp, double f, Vector2D< double > const &c)</div><div class="ttdoc">重設bitmap, focal, center </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00169">Photo.h:169</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a4d237ed59e6227940c20831cdce797a8"><div class="ttname"><a href="classmeow_1_1Photo.html#a4d237ed59e6227940c20831cdce797a8">meow::Photo::reset</a></div><div class="ttdeci">void reset(Bitmap< Pixel > const &bmp, double f, Vector2D< double > const &c)</div><div class="ttdoc">重設bitmap, focal, center </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00172">Photo.h:172</a></div></div> <div class="ttc" id="classmeow_1_1Self_html"><div class="ttname"><a href="classmeow_1_1Self.html">meow::Self< Myself ></a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a0e947011dcb0db21760c89663acd2208"><div class="ttname"><a href="classmeow_1_1Photo.html#a0e947011dcb0db21760c89663acd2208">meow::Photo::copyFrom</a></div><div class="ttdeci">ObjBase * copyFrom(ObjBase const *b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00420">Photo.h:420</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_ab97f03da439edeb8834fd6e7a3487f65"><div class="ttname"><a href="classmeow_1_1Photo.html#ab97f03da439edeb8834fd6e7a3487f65">meow::Photo::operator=</a></div><div class="ttdeci">Photo & operator=(Photo const &b)</div><div class="ttdoc">same as .copyFrom(b) </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00361">Photo.h:361</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a0e947011dcb0db21760c89663acd2208"><div class="ttname"><a href="classmeow_1_1Photo.html#a0e947011dcb0db21760c89663acd2208">meow::Photo::copyFrom</a></div><div class="ttdeci">ObjBase * copyFrom(ObjBase const *b)</div><div class="ttdoc">複製資料 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00423">Photo.h:423</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_ab97f03da439edeb8834fd6e7a3487f65"><div class="ttname"><a href="classmeow_1_1Photo.html#ab97f03da439edeb8834fd6e7a3487f65">meow::Photo::operator=</a></div><div class="ttdeci">Photo & operator=(Photo const &b)</div><div class="ttdoc">same as .copyFrom(b) </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00364">Photo.h:364</a></div></div> <div class="ttc" id="classmeow_1_1PhotoProjection_html"><div class="ttname"><a href="classmeow_1_1PhotoProjection.html">meow::PhotoProjection< double ></a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a84b9bae13da85ab5d1caf02cdede7092"><div class="ttname"><a href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092">meow::Photo::Photo</a></div><div class="ttdeci">Photo()</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00059">Photo.h:59</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_ab92324c852686bcad5e374aa9ae8e952"><div class="ttname"><a href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952">meow::Photo::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="Photo_8h_source.html#l00369">Photo.h:369</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a84b9bae13da85ab5d1caf02cdede7092"><div class="ttname"><a href="classmeow_1_1Photo.html#a84b9bae13da85ab5d1caf02cdede7092">meow::Photo::Photo</a></div><div class="ttdeci">Photo()</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00062">Photo.h:62</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_ab92324c852686bcad5e374aa9ae8e952"><div class="ttname"><a href="classmeow_1_1Photo.html#ab92324c852686bcad5e374aa9ae8e952">meow::Photo::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="Photo_8h_source.html#l00372">Photo.h:372</a></div></div> <div class="ttc" id="classmeow_1_1Vector2D_html_a0506d587eb30444092082258baab7a74"><div class="ttname"><a href="classmeow_1_1Vector2D.html#a0506d587eb30444092082258baab7a74">meow::Vector2D::y</a></div><div class="ttdeci">Scalar const & y() const </div><div class="ttdoc">access y </div><div class="ttdef"><b>Definition:</b> <a href="Vectors_8h_source.html#l00071">Vectors.h:71</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a1a81a5be069f31e16e2e665ff97e778c"><div class="ttname"><a href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">meow::Photo::center</a></div><div class="ttdeci">Vector2D< double > const & center() const </div><div class="ttdoc">取得照片中心點底片座標 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00240">Photo.h:240</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_ae1d328ee4c0971d4a90fb1f05bea1e66"><div class="ttname"><a href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">meow::Photo::inside</a></div><div class="ttdeci">bool inside(Vector2D< double > const &yx) const </div><div class="ttdoc">檢查某點是否在底片範圍內 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00301">Photo.h:301</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a85f96086c9c4041ae14f0c1c9c6d23f8"><div class="ttname"><a href="classmeow_1_1Photo.html#a85f96086c9c4041ae14f0c1c9c6d23f8">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Photo const &b)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00070">Photo.h:70</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a1a81a5be069f31e16e2e665ff97e778c"><div class="ttname"><a href="classmeow_1_1Photo.html#a1a81a5be069f31e16e2e665ff97e778c">meow::Photo::center</a></div><div class="ttdeci">Vector2D< double > const & center() const </div><div class="ttdoc">取得照片中心點底片座標 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00243">Photo.h:243</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_ae1d328ee4c0971d4a90fb1f05bea1e66"><div class="ttname"><a href="classmeow_1_1Photo.html#ae1d328ee4c0971d4a90fb1f05bea1e66">meow::Photo::inside</a></div><div class="ttdeci">bool inside(Vector2D< double > const &yx) const </div><div class="ttdoc">檢查某點是否在底片範圍內 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00304">Photo.h:304</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a85f96086c9c4041ae14f0c1c9c6d23f8"><div class="ttname"><a href="classmeow_1_1Photo.html#a85f96086c9c4041ae14f0c1c9c6d23f8">meow::Photo::Photo</a></div><div class="ttdeci">Photo(Photo const &b)</div><div class="ttdoc">constructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00073">Photo.h:73</a></div></div> <div class="ttc" id="classint_html"><div class="ttname"><a href="classint.html">int</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_a43ac8952d85ea584dc9ea9a0424dbb98"><div class="ttname"><a href="classmeow_1_1Photo.html#a43ac8952d85ea584dc9ea9a0424dbb98">meow::Photo::inside</a></div><div class="ttdeci">bool inside(Vector3D< double > const &p) const </div><div class="ttdoc">檢查某點是否在底片範圍內 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00315">Photo.h:315</a></div></div> -<div class="ttc" id="classmeow_1_1Photo_html_ad3ba33208243966fe72db6c3a519e22d"><div class="ttname"><a href="classmeow_1_1Photo.html#ad3ba33208243966fe72db6c3a519e22d">meow::Photo::~Photo</a></div><div class="ttdeci">~Photo()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00112">Photo.h:112</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a43ac8952d85ea584dc9ea9a0424dbb98"><div class="ttname"><a href="classmeow_1_1Photo.html#a43ac8952d85ea584dc9ea9a0424dbb98">meow::Photo::inside</a></div><div class="ttdeci">bool inside(Vector3D< double > const &p) const </div><div class="ttdoc">檢查某點是否在底片範圍內 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00318">Photo.h:318</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_ad3ba33208243966fe72db6c3a519e22d"><div class="ttname"><a href="classmeow_1_1Photo.html#ad3ba33208243966fe72db6c3a519e22d">meow::Photo::~Photo</a></div><div class="ttdeci">~Photo()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00115">Photo.h:115</a></div></div> <div class="ttc" id="classmeow_1_1Vector2D_html"><div class="ttname"><a href="classmeow_1_1Vector2D.html">meow::Vector2D< double ></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 &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_1Photo_html_a0fc9394bbee567c1961500808a5f9a9d"><div class="ttname"><a href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">meow::Photo::height</a></div><div class="ttdeci">size_t height() const </div><div class="ttdoc">回傳bitmap高 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00275">Photo.h:275</a></div></div> +<div class="ttc" id="classmeow_1_1Photo_html_a0fc9394bbee567c1961500808a5f9a9d"><div class="ttname"><a href="classmeow_1_1Photo.html#a0fc9394bbee567c1961500808a5f9a9d">meow::Photo::height</a></div><div class="ttdeci">size_t height() const </div><div class="ttdoc">回傳bitmap高 </div><div class="ttdef"><b>Definition:</b> <a href="Photo_8h_source.html#l00278">Photo.h:278</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- HTML footer for doxygen 1.8.3.1--> @@ -361,7 +364,7 @@ $(document).ready(function(){initNavTree('Photo_8h_source.html','');}); <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="dir_115d3279a93b9c99d8f569a34543848f.html">gra</a></li><li class="navelem"><a class="el" href="Photo_8h.html">Photo.h</a></li> - <li class="footer">Generated on Mon Jun 23 2014 17:02:02 for Templates -- Meow by + <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> |