-
Notifications
You must be signed in to change notification settings - Fork 1
/
ArithmeticalDSSConvexHull_8h_source.html
284 lines (282 loc) · 42.4 KB
/
ArithmeticalDSSConvexHull_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGtal: ArithmeticalDSSConvexHull.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">DGtal
 <span id="projectnumber">1.5.beta</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ArithmeticalDSSConvexHull_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">ArithmeticalDSSConvexHull.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#if defined(ArithmeticalDSSConvexHull_RECURSES)</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#error Recursive header files inclusion detected in ArithmeticalDSSConvexHull.h</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#else </span><span class="comment">// defined(ArithmeticalDSSConvexHull_RECURSES)</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"></span>#define ArithmeticalDSSConvexHull_RECURSES</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#if !defined ArithmeticalDSSConvexHull_h</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#define ArithmeticalDSSConvexHull_h</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Inclusions</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include <iostream></span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "DGtal/base/Common.h"</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> <span class="keyword">namespace </span><a class="code" href="namespaceDGtal.html">DGtal</a></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">namespace </span>functors {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Vector, <span class="keyword">typename</span> TPosition></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html"> 63</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html">PositionFunctorFrom2DPoint</a></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>  <span class="keyword">public</span>: </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#af30918779c2c7c407912426fdbc9ba3e"> 66</a></span>  <span class="keyword">typedef</span> TPosition <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#af30918779c2c7c407912426fdbc9ba3e">Position</a>; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">private</span>: </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a2290eea42783a9f0a9c827a29e876779"> 69</a></span>  <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#a23c0623485ed9af765bab12ac424843c">Vector</a> <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a2290eea42783a9f0a9c827a29e876779">myShift</a>; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#aea90046a61efacdb2f6bc04e338a6a1f"> 75</a></span>  <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#aea90046a61efacdb2f6bc04e338a6a1f">PositionFunctorFrom2DPoint</a>(<span class="keyword">const</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#a23c0623485ed9af765bab12ac424843c">Vector</a>& aShift): <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a2290eea42783a9f0a9c827a29e876779">myShift</a>(aShift) {}</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Po<span class="keywordtype">int</span>Vector></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a64b705f14d92ba7eadfd104d6b51ac38"> 84</a></span>  <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#af30918779c2c7c407912426fdbc9ba3e">Position</a> <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a64b705f14d92ba7eadfd104d6b51ac38">operator()</a>(<span class="keyword">const</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& aPointVector)<span class="keyword"> const</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span> ( - <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a2290eea42783a9f0a9c827a29e876779">myShift</a>[1] * aPointVector[0]</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  + <a class="code" href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a2290eea42783a9f0a9c827a29e876779">myShift</a>[0] * aPointVector[1] );</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }; </div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Integer></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1LargeTruncationFunctor.html"> 101</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1functors_1_1LargeTruncationFunctor.html">LargeTruncationFunctor</a></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">public</span>: </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1LargeTruncationFunctor.html#a29a25202e6132673962f2f0dcc4a234c"> 112</a></span>  <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a> <a class="code" href="structDGtal_1_1functors_1_1LargeTruncationFunctor.html#a29a25202e6132673962f2f0dcc4a234c">operator()</a>(<span class="keyword">const</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a>& a, <span class="keyword">const</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a>& b)<span class="keyword"> const</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  ASSERT( b != <a class="code" href="structDGtal_1_1NumberTraits.html">NumberTraits<Integer>::ZERO</a> );</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> a / b; </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="l00118"></a><span class="lineno"> 118</span>  </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> Integer></div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1StrictTruncationFunctor.html"> 130</a></span>  <span class="keyword">struct </span><a class="code" href="structDGtal_1_1functors_1_1StrictTruncationFunctor.html">StrictTruncationFunctor</a></div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">public</span>: </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structDGtal_1_1functors_1_1StrictTruncationFunctor.html#a1e48eb97beb4130d6d08b156c99bb482"> 142</a></span>  <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a> <a class="code" href="structDGtal_1_1functors_1_1StrictTruncationFunctor.html#a1e48eb97beb4130d6d08b156c99bb482">operator()</a>(<span class="keyword">const</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a>& a, <span class="keyword">const</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a>& b)<span class="keyword"> const </span></div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="keyword"> </span>{</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  ASSERT( a != <a class="code" href="structDGtal_1_1NumberTraits.html">NumberTraits<Integer>::ZERO</a> ); </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  ASSERT( b != <a class="code" href="structDGtal_1_1NumberTraits.html">NumberTraits<Integer>::ZERO</a> );</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>  <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a> i = a / b;</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (a == i*b)</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>  <span class="keywordflow">if</span> (i >= <a class="code" href="structDGtal_1_1NumberTraits.html">NumberTraits<Integer>::ZERO</a>) </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  --i; </div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">else</span> </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  ++i;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  }</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordflow">return</span> i; </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  } </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  }; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  } <span class="comment">// namespace functors</span></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="l00162"></a><span class="lineno"> 162</span>  <span class="keyword">namespace </span>functions {</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Position, <span class="keyword">typename</span> Coordinate, <span class="keyword">typename</span> PointVector, </div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">typename</span> OutputIterator,</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">typename</span> PositionFunctor,</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">typename</span> TruncationFunctor1, <span class="keyword">typename</span> TruncationFunctor2></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a2c21293d6efa82afb1b20db4d7a794a7"> 199</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a2c21293d6efa82afb1b20db4d7a794a7">smartCHNextVertex</a>(<span class="keyword">const</span> Position& positionBound,</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keyword">const</span> Coordinate& remainderBound,</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& X,</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  Coordinate& rX, </div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keyword">const</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& Y,</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keyword">const</span> Coordinate& rY, </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& V, </div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  Coordinate& rV,</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  OutputIterator ito,</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keyword">const</span> PositionFunctor& pos, </div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keyword">const</span> TruncationFunctor1& f1, </div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">const</span> TruncationFunctor2& f2); </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keyword">template</span><<span class="keyword">typename</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>, <span class="keyword">typename</span> Coordinate, <span class="keyword">typename</span> Position, </div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">typename</span> PositionFunctor, <span class="keyword">typename</span> OutputIterator></div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a></div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a07b66e9e7682c0f900bcbeabcac96b7b"> 243</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a07b66e9e7682c0f900bcbeabcac96b7b">smartCH</a>(<span class="keyword">const</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& aFirstPoint, </div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">const</span> Coordinate& aRemainderBound, </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keyword">const</span> Position& aPositionBound, </div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keyword">const</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& aStep,</div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">const</span> Coordinate& aRStep, </div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keyword">const</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& aShift, </div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">const</span> Coordinate& aRShift, </div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keyword">const</span> PositionFunctor& aPositionFunctor, </div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  OutputIterator uIto, OutputIterator lIto); </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keyword">template</span><<span class="keyword">typename</span> DSL, <span class="keyword">typename</span> OutputIterator></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#adc99490ec12ae9e68c03c08d473e8692"> 272</a></span>  <span class="keyword">typename</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#a23c0623485ed9af765bab12ac424843c">DSL::Vector</a> <a class="code" href="namespaceDGtal_1_1functions.html#a07b66e9e7682c0f900bcbeabcac96b7b">smartCH</a>(<span class="keyword">const</span> DSL& aDSL, </div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testClone2_8cpp.html#a15e9592ccc512dc691b46185e6814758">DSL::Point</a>& aFirstPoint, </div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keyword">const</span> <span class="keyword">typename</span> DSL::Position& aLength, </div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  OutputIterator uIto, OutputIterator lIto); </div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  </div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  </div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">template</span><<span class="keyword">typename</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>, <span class="keyword">typename</span> Position, </div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">typename</span> OutputIterator, </div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keyword">typename</span> TruncationFunctor1, <span class="keyword">typename</span> TruncationFunctor2, </div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keyword">typename</span> PositionFunctor></div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a184e90763c4747a4b7c71a58e1bf4bfe"> 311</a></span>  <span class="keywordtype">bool</span> <a class="code" href="namespaceDGtal_1_1functions.html#a184e90763c4747a4b7c71a58e1bf4bfe">smartCHPreviousVertex</a>(<a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& X, <span class="keyword">const</span> <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& Y, <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a>& V, </div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keyword">const</span> Position& aFirstPosition, <span class="keyword">const</span> Position& aLastPosition, </div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  OutputIterator ito, </div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keyword">const</span> PositionFunctor& pos,</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keyword">const</span> TruncationFunctor1& f1, </div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keyword">const</span> TruncationFunctor2& f2); </div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  </div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Po<span class="keywordtype">int</span>Vector, <span class="keyword">typename</span> Position, <span class="keyword">typename</span> PositionFunctor, <span class="keyword">typename</span> OutputIterator></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#aa754ac3d17216563354db61d905a545c"> 346</a></span>  <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a> <a class="code" href="namespaceDGtal_1_1functions.html#aa754ac3d17216563354db61d905a545c">reversedSmartCH</a>(<a class="code" href="classDGtal_1_1PointVector.html">PointVector</a> U, <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a> L, <a class="code" href="classDGtal_1_1PointVector.html">PointVector</a> V, </div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">const</span> Position& aFirstPosition, <span class="keyword">const</span> Position& aLastPosition,</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keyword">const</span> PositionFunctor& aPositionFunctor, </div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  OutputIterator uIto, OutputIterator lIto); </div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  </div>
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keyword">template</span><<span class="keyword">typename</span> DSS, <span class="keyword">typename</span> OutputIterator></div>
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keyword">inline</span></div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a42d6f1219d53ecefb73b55c386e0d54a"> 372</a></span>  <span class="keyword">typename</span> <a class="code" href="examplePlaneProbingParallelepipedEstimator_8cpp.html#a23c0623485ed9af765bab12ac424843c">DSS::Vector</a> <a class="code" href="namespaceDGtal_1_1functions.html#aa754ac3d17216563354db61d905a545c">reversedSmartCH</a>(<span class="keyword">const</span> DSS& aDSS, </div>
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keyword">const</span> <span class="keyword">typename</span> DSS::Position& aPositionBound, </div>
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  OutputIterator uIto, OutputIterator lIto); </div>
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  </div>
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  } <span class="comment">// namespace functions</span></div>
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  </div>
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  </div>
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> } <span class="comment">// namespace DGtal</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>  </div>
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="comment">// Includes inline functions.</span></div>
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="preprocessor">#include "DGtal/geometry/curves/ArithmeticalDSSConvexHull.ih"</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> <span class="comment">// //</span></div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="comment"></span> </div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="preprocessor">#endif </span><span class="comment">// !defined ArithmeticalDSSConvexHull_h</span></div>
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div>
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="preprocessor">#undef ArithmeticalDSSConvexHull_RECURSES</span></div>
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="preprocessor">#endif </span><span class="comment">// else defined(ArithmeticalDSSConvexHull_RECURSES)</span></div>
<div class="ttc" id="aclassDGtal_1_1PointVector_html"><div class="ttname"><a href="classDGtal_1_1PointVector.html">DGtal::PointVector</a></div><div class="ttdoc">Aim: Implements basic operations that will be used in Point and Vector classes.</div><div class="ttdef"><b>Definition:</b> <a href="PointVector_8h_source.html#l00592">PointVector.h:593</a></div></div>
<div class="ttc" id="aexamplePlaneProbingParallelepipedEstimator_8cpp_html_a23c0623485ed9af765bab12ac424843c"><div class="ttname"><a href="examplePlaneProbingParallelepipedEstimator_8cpp.html#a23c0623485ed9af765bab12ac424843c">Vector</a></div><div class="ttdeci">DigitalPlane::Point Vector</div><div class="ttdef"><b>Definition:</b> <a href="examplePlaneProbingParallelepipedEstimator_8cpp_source.html#l00045">examplePlaneProbingParallelepipedEstimator.cpp:45</a></div></div>
<div class="ttc" id="aexamplePlaneProbingParallelepipedEstimator_8cpp_html_ad31c3eca44cf6770809bc47f2b456212"><div class="ttname"><a href="examplePlaneProbingParallelepipedEstimator_8cpp.html#ad31c3eca44cf6770809bc47f2b456212">Integer</a></div><div class="ttdeci">Point::Coordinate Integer</div><div class="ttdef"><b>Definition:</b> <a href="examplePlaneProbingParallelepipedEstimator_8cpp_source.html#l00044">examplePlaneProbingParallelepipedEstimator.cpp:44</a></div></div>
<div class="ttc" id="anamespaceDGtal_1_1functions_html_a07b66e9e7682c0f900bcbeabcac96b7b"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a07b66e9e7682c0f900bcbeabcac96b7b">DGtal::functions::smartCH</a></div><div class="ttdeci">PointVector smartCH(const PointVector &aFirstPoint, const Coordinate &aRemainderBound, const Position &aPositionBound, const PointVector &aStep, const Coordinate &aRStep, const PointVector &aShift, const Coordinate &aRShift, const PositionFunctor &aPositionFunctor, OutputIterator uIto, OutputIterator lIto)</div><div class="ttdoc">Procedure that computes the lower and upper left hull of a DSS of first point aFirstPoint,...</div></div>
<div class="ttc" id="anamespaceDGtal_1_1functions_html_a184e90763c4747a4b7c71a58e1bf4bfe"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a184e90763c4747a4b7c71a58e1bf4bfe">DGtal::functions::smartCHPreviousVertex</a></div><div class="ttdeci">bool smartCHPreviousVertex(PointVector &X, const PointVector &Y, PointVector &V, const Position &aFirstPosition, const Position &aLastPosition, OutputIterator ito, const PositionFunctor &pos, const TruncationFunctor1 &f1, const TruncationFunctor2 &f2)</div><div class="ttdoc">Procedure that computes the previous vertex of the left hull of a DSS of main direction vector V ,...</div></div>
<div class="ttc" id="anamespaceDGtal_1_1functions_html_a2c21293d6efa82afb1b20db4d7a794a7"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a2c21293d6efa82afb1b20db4d7a794a7">DGtal::functions::smartCHNextVertex</a></div><div class="ttdeci">bool smartCHNextVertex(const Position &positionBound, const Coordinate &remainderBound, PointVector &X, Coordinate &rX, const PointVector &Y, const Coordinate &rY, PointVector &V, Coordinate &rV, OutputIterator ito, const PositionFunctor &pos, const TruncationFunctor1 &f1, const TruncationFunctor2 &f2)</div><div class="ttdoc">Procedure that computes the next (lower or upper) vertex of the left hull of a DSS.</div></div>
<div class="ttc" id="anamespaceDGtal_1_1functions_html_aa754ac3d17216563354db61d905a545c"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#aa754ac3d17216563354db61d905a545c">DGtal::functions::reversedSmartCH</a></div><div class="ttdeci">PointVector reversedSmartCH(PointVector U, PointVector L, PointVector V, const Position &aFirstPosition, const Position &aLastPosition, const PositionFunctor &aPositionFunctor, OutputIterator uIto, OutputIterator lIto)</div><div class="ttdoc">Procedure that computes the lower and upper left hull of the left subsegment of a greater DSS charact...</div></div>
<div class="ttc" id="anamespaceDGtal_html"><div class="ttname"><a href="namespaceDGtal.html">DGtal</a></div><div class="ttdoc">DGtal is the top-level namespace which contains all DGtal functions and types.</div></div>
<div class="ttc" id="astructDGtal_1_1NumberTraits_html"><div class="ttname"><a href="structDGtal_1_1NumberTraits.html">DGtal::NumberTraits</a></div><div class="ttdoc">Aim: The traits class for all models of Cinteger.</div><div class="ttdef"><b>Definition:</b> <a href="NumberTraits_8h_source.html#l00562">NumberTraits.h:564</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1LargeTruncationFunctor_html"><div class="ttname"><a href="structDGtal_1_1functors_1_1LargeTruncationFunctor.html">DGtal::functors::LargeTruncationFunctor</a></div><div class="ttdoc">Binary functor that returns the algebraic quotient i of a/b with any fractional part discarded (trunc...</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00101">ArithmeticalDSSConvexHull.h:102</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1LargeTruncationFunctor_html_a29a25202e6132673962f2f0dcc4a234c"><div class="ttname"><a href="structDGtal_1_1functors_1_1LargeTruncationFunctor.html#a29a25202e6132673962f2f0dcc4a234c">DGtal::functors::LargeTruncationFunctor::operator()</a></div><div class="ttdeci">Integer operator()(const Integer &a, const Integer &b) const</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00112">ArithmeticalDSSConvexHull.h:112</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1PositionFunctorFrom2DPoint_html"><div class="ttname"><a href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html">DGtal::functors::PositionFunctorFrom2DPoint</a></div><div class="ttdoc">Functor that returns the position of any point/vector with respect to a digital straight line of shif...</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00063">ArithmeticalDSSConvexHull.h:64</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1PositionFunctorFrom2DPoint_html_a2290eea42783a9f0a9c827a29e876779"><div class="ttname"><a href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a2290eea42783a9f0a9c827a29e876779">DGtal::functors::PositionFunctorFrom2DPoint::myShift</a></div><div class="ttdeci">Vector myShift</div><div class="ttdoc">shift vector</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00069">ArithmeticalDSSConvexHull.h:69</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1PositionFunctorFrom2DPoint_html_a64b705f14d92ba7eadfd104d6b51ac38"><div class="ttname"><a href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#a64b705f14d92ba7eadfd104d6b51ac38">DGtal::functors::PositionFunctorFrom2DPoint::operator()</a></div><div class="ttdeci">Position operator()(const PointVector &aPointVector) const</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00084">ArithmeticalDSSConvexHull.h:84</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1PositionFunctorFrom2DPoint_html_aea90046a61efacdb2f6bc04e338a6a1f"><div class="ttname"><a href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#aea90046a61efacdb2f6bc04e338a6a1f">DGtal::functors::PositionFunctorFrom2DPoint::PositionFunctorFrom2DPoint</a></div><div class="ttdeci">PositionFunctorFrom2DPoint(const Vector &aShift)</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00075">ArithmeticalDSSConvexHull.h:75</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1PositionFunctorFrom2DPoint_html_af30918779c2c7c407912426fdbc9ba3e"><div class="ttname"><a href="structDGtal_1_1functors_1_1PositionFunctorFrom2DPoint.html#af30918779c2c7c407912426fdbc9ba3e">DGtal::functors::PositionFunctorFrom2DPoint::Position</a></div><div class="ttdeci">TPosition Position</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00066">ArithmeticalDSSConvexHull.h:66</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1StrictTruncationFunctor_html"><div class="ttname"><a href="structDGtal_1_1functors_1_1StrictTruncationFunctor.html">DGtal::functors::StrictTruncationFunctor</a></div><div class="ttdoc">BinaryFunctor that computes the algebraic quotient i of a/b with any non zero fractional part discard...</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00130">ArithmeticalDSSConvexHull.h:131</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1StrictTruncationFunctor_html_a1e48eb97beb4130d6d08b156c99bb482"><div class="ttname"><a href="structDGtal_1_1functors_1_1StrictTruncationFunctor.html#a1e48eb97beb4130d6d08b156c99bb482">DGtal::functors::StrictTruncationFunctor::operator()</a></div><div class="ttdeci">Integer operator()(const Integer &a, const Integer &b) const</div><div class="ttdef"><b>Definition:</b> <a href="ArithmeticalDSSConvexHull_8h_source.html#l00142">ArithmeticalDSSConvexHull.h:142</a></div></div>
<div class="ttc" id="atestClone2_8cpp_html_a15e9592ccc512dc691b46185e6814758"><div class="ttname"><a href="testClone2_8cpp.html#a15e9592ccc512dc691b46185e6814758">Point</a></div><div class="ttdeci">MyPointD Point</div><div class="ttdef"><b>Definition:</b> <a href="testClone2_8cpp_source.html#l00383">testClone2.cpp:383</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f2cd1aeea1cfa982bb13a5f95fa4218c.html">DGtal</a></li><li class="navelem"><a class="el" href="dir_754267a81a1dbd2dcdc6a3e6905a7e31.html">geometry</a></li><li class="navelem"><a class="el" href="dir_f470c2f5fde179648eef8a3806cdaeb7.html">curves</a></li><li class="navelem"><b>ArithmeticalDSSConvexHull.h</b></li>
<li class="footer">Generated on Sat Nov 9 2024 12:44:31 for DGtal by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>