-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy patha00026_source.html
283 lines (281 loc) · 39.5 KB
/
a00026_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
<!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.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tesseract: /tesseract/include/tesseract/pageiterator.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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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>
<link href="doxygen.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">tesseract
 <span id="projectnumber">5.0.0-alpha-619-ge9db</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<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');
/* @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('a00026_source.html','');});
/* @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">pageiterator.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="a00026.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// File: pageiterator.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// Description: Iterator for tesseract page structure that avoids using</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// tesseract internal data structures.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// Author: Ray Smith</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// Created: Fri Feb 26 11:01:06 PST 2010</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">//</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// (C) Copyright 2010, Google Inc.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// limitations under the License.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"></span> </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef TESSERACT_CCMAIN_PAGEITERATOR_H_</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define TESSERACT_CCMAIN_PAGEITERATOR_H_</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="a00029.html">platform.h</a>"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="a00032.html">publictypes.h</a>"</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">struct </span><a class="code" href="a02662.html">BlamerBundle</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">class </span>C_BLOB_IT;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">class </span><a class="code" href="a02818.html">PAGE_RES</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">class </span><a class="code" href="a02834.html">PAGE_RES_IT</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">class </span><a class="code" href="a02926.html">WERD</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">struct </span>Pix;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">struct </span>Pta;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">namespace </span><a class="code" href="a01818.html">tesseract</a> {</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="keyword">class </span>Tesseract;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="a02486.html"> 52</a></span> <span class="keyword">class </span><a class="code" href="a00029.html#a86e51270628c53ce7e2c23b1c2b4490e">TESS_API</a> <a class="code" href="a02486.html">PageIterator</a> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="a02486.html">PageIterator</a>(<a class="code" href="a02818.html">PAGE_RES</a>* page_res, <a class="code" href="a02658.html">Tesseract</a>* <a class="code" href="a01818.html">tesseract</a>, <span class="keywordtype">int</span> scale,</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">int</span> scaled_yres, <span class="keywordtype">int</span> rect_left, <span class="keywordtype">int</span> rect_top, <span class="keywordtype">int</span> rect_width,</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">int</span> rect_height);</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">virtual</span> ~<a class="code" href="a02486.html">PageIterator</a>();</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="a02486.html">PageIterator</a>(<span class="keyword">const</span> <a class="code" href="a02486.html">PageIterator</a>& src);</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">const</span> <a class="code" href="a02486.html">PageIterator</a>& operator=(<span class="keyword">const</span> <a class="code" href="a02486.html">PageIterator</a>& src);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">bool</span> PositionedAtSameWord(<span class="keyword">const</span> <a class="code" href="a02834.html">PAGE_RES_IT</a>* other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="comment">// ============= Moving around within the page ============.</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> Begin();</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  </div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> RestartParagraph();</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">bool</span> IsWithinFirstTextlineOfParagraph() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> RestartRow();</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> Next(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level);</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> IsAtBeginningOf(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> IsAtFinalElement(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level,</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> element) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordtype">int</span> Cmp(<span class="keyword">const</span> <a class="code" href="a02486.html">PageIterator</a>& other) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// ============= Accessing data ==============.</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">// Coordinate system:</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// Integer coordinates are at the cracks between the pixels.</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// The top-left corner of the top-left pixel in the image is at (0,0).</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">// The bottom-right corner of the bottom-right pixel in the image is at</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="comment">// (width, height).</span></div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="comment">// Every bounding box goes from the top-left of the top-left contained</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="comment">// pixel to the bottom-right of the bottom-right contained pixel, so</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="comment">// the bounding box of the single top-left pixel in the image is:</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="comment">// (0,0)->(1,1).</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="comment">// If an image rectangle has been set in the API, then returned coordinates</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="comment">// relate to the original (full) image, rather than the rectangle.</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="a02486.html#a4468f4d9a7d73da56bc9e128705059ac"> 190</a></span>  <span class="keywordtype">void</span> <a class="code" href="a02486.html#a4468f4d9a7d73da56bc9e128705059ac">SetBoundingBoxComponents</a>(<span class="keywordtype">bool</span> include_upper_dots,</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">bool</span> include_lower_dots) {</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  include_upper_dots_ = include_upper_dots;</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  include_lower_dots_ = include_lower_dots;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  }</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordtype">bool</span> BoundingBox(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level, <span class="keywordtype">int</span>* left, <span class="keywordtype">int</span>* top, <span class="keywordtype">int</span>* right,</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordtype">int</span>* bottom) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordtype">bool</span> BoundingBox(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level, <span class="keywordtype">int</span> padding, <span class="keywordtype">int</span>* left, <span class="keywordtype">int</span>* top,</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordtype">int</span>* right, <span class="keywordtype">int</span>* bottom) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordtype">bool</span> BoundingBoxInternal(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level, <span class="keywordtype">int</span>* left, <span class="keywordtype">int</span>* top,</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordtype">int</span>* right, <span class="keywordtype">int</span>* bottom) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordtype">bool</span> Empty(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  </div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="a00032.html#a03566528a98c079dafeebf00502f2b60">PolyBlockType</a> BlockType() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  Pta* BlockPolygon() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  </div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  Pix* GetBinaryImage(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  </div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  Pix* GetImage(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level, <span class="keywordtype">int</span> padding, Pix* original_img,</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordtype">int</span>* left, <span class="keywordtype">int</span>* top) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  </div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordtype">bool</span> Baseline(<a class="code" href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">PageIteratorLevel</a> level, <span class="keywordtype">int</span>* x1, <span class="keywordtype">int</span>* y1, <span class="keywordtype">int</span>* x2,</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">int</span>* y2) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  </div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordtype">void</span> <a class="code" href="a01818.html#a76ce0248fd3ba576ca053e9bb82e492f">Orientation</a>(<a class="code" href="a01818.html#a76ce0248fd3ba576ca053e9bb82e492f">tesseract::Orientation</a>* orientation,</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="a01818.html#acac5bfbc6e9f8ca26f42ea3bad95d84e">tesseract::WritingDirection</a>* writing_direction,</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="a01818.html#a28b14f9ab9d686fb45e130abc15c1781">tesseract::TextlineOrder</a>* textline_order,</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordtype">float</span>* deskew_angle) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  </div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordtype">void</span> ParagraphInfo(<a class="code" href="a01818.html#a550970d1662b3ac5830c6a28dba676b1">tesseract::ParagraphJustification</a>* justification,</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordtype">bool</span>* is_list_item, <span class="keywordtype">bool</span>* is_crown,</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keywordtype">int</span>* first_line_indent) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="comment">// If the current WERD_RES (it_->word()) is not nullptr, sets the BlamerBundle</span></div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="comment">// of the current word to the given pointer (takes ownership of the pointer)</span></div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="comment">// and returns true.</span></div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="comment">// Can only be used when iterating on the word level.</span></div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keywordtype">bool</span> SetWordBlamerBundle(<a class="code" href="a02662.html">BlamerBundle</a>* blamer_bundle);</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  </div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <a class="code" href="a00029.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a> <span class="keywordtype">void</span> BeginWord(<span class="keywordtype">int</span> offset);</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="a02486.html#a480fee3b9cf81df1745ab671c5f28788"> 325</a></span>  <a class="code" href="a02818.html">PAGE_RES</a>* <a class="code" href="a02486.html#a480fee3b9cf81df1745ab671c5f28788">page_res_</a>;</div>
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="a02486.html#acca34c1adcf494eca7dfefe74258f991"> 327</a></span>  <a class="code" href="a02658.html">Tesseract</a>* <a class="code" href="a02486.html#acca34c1adcf494eca7dfefe74258f991">tesseract_</a>;</div>
<div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="a02486.html#a42df7b8e352be1e5a140787109419f93"> 332</a></span>  <a class="code" href="a02834.html">PAGE_RES_IT</a>* <a class="code" href="a02486.html#a42df7b8e352be1e5a140787109419f93">it_</a>;</div>
<div class="line"><a name="l00337"></a><span class="lineno"><a class="line" href="a02486.html#a409db505129bcd894cbe20b77f7663bb"> 337</a></span>  <a class="code" href="a02926.html">WERD</a>* <a class="code" href="a02486.html#a409db505129bcd894cbe20b77f7663bb">word_</a>;</div>
<div class="line"><a name="l00339"></a><span class="lineno"><a class="line" href="a02486.html#a5bcc04bef9fefefc856440bcfe15d9ab"> 339</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#a5bcc04bef9fefefc856440bcfe15d9ab">word_length_</a>;</div>
<div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="a02486.html#a98d81a4da55f06637a0db60ac33cc814"> 341</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#a98d81a4da55f06637a0db60ac33cc814">blob_index_</a>;</div>
<div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="a02486.html#a4ea0a38b584bbc0047792ebe6b0294ce"> 347</a></span>  C_BLOB_IT* <a class="code" href="a02486.html#a4ea0a38b584bbc0047792ebe6b0294ce">cblob_it_</a>;</div>
<div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="a02486.html#a5ca6441056d5158068499a48788d987a"> 349</a></span>  <span class="keywordtype">bool</span> <a class="code" href="a02486.html#a5ca6441056d5158068499a48788d987a">include_upper_dots_</a>;</div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="a02486.html#a71077e1f85caeadd318ee8079295bdd7"> 350</a></span>  <span class="keywordtype">bool</span> <a class="code" href="a02486.html#a71077e1f85caeadd318ee8079295bdd7">include_lower_dots_</a>;</div>
<div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="a02486.html#ae72a89d863ac231b9cfbab4c6004ad3d"> 352</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#ae72a89d863ac231b9cfbab4c6004ad3d">scale_</a>;</div>
<div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="a02486.html#a43f0c51fac0f0e60139487d5868812a3"> 353</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#a43f0c51fac0f0e60139487d5868812a3">scaled_yres_</a>;</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="a02486.html#a2e33ff0e1d949366720fe29a7203f57e"> 354</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#a2e33ff0e1d949366720fe29a7203f57e">rect_left_</a>;</div>
<div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="a02486.html#a7c33ac80eda9144c2b857963457ace9c"> 355</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#a7c33ac80eda9144c2b857963457ace9c">rect_top_</a>;</div>
<div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="a02486.html#aa8eba0c6367dd6349fe903ac7c3860a4"> 356</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#aa8eba0c6367dd6349fe903ac7c3860a4">rect_width_</a>;</div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="a02486.html#a66e96ed36eeed8b9da723c397910f9e9"> 357</a></span>  <span class="keywordtype">int</span> <a class="code" href="a02486.html#a66e96ed36eeed8b9da723c397910f9e9">rect_height_</a>;</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> };</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> } <span class="comment">// namespace tesseract.</span></div>
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  </div>
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="preprocessor">#endif // TESSERACT_CCMAIN_PAGEITERATOR_H_</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa02486_html_a66e96ed36eeed8b9da723c397910f9e9"><div class="ttname"><a href="a02486.html#a66e96ed36eeed8b9da723c397910f9e9">tesseract::PageIterator::rect_height_</a></div><div class="ttdeci">int rect_height_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00357">pageiterator.h:357</a></div></div>
<div class="ttc" id="aa02486_html_a42df7b8e352be1e5a140787109419f93"><div class="ttname"><a href="a02486.html#a42df7b8e352be1e5a140787109419f93">tesseract::PageIterator::it_</a></div><div class="ttdeci">PAGE_RES_IT * it_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00332">pageiterator.h:332</a></div></div>
<div class="ttc" id="aa00029_html_aefcd819eeed9085ef0eeeff0f4cac64f"><div class="ttname"><a href="a00029.html#aefcd819eeed9085ef0eeeff0f4cac64f">TESS_LOCAL</a></div><div class="ttdeci">#define TESS_LOCAL</div><div class="ttdef"><b>Definition:</b> <a href="a00029_source.html#l00055">platform.h:55</a></div></div>
<div class="ttc" id="aa02486_html_a480fee3b9cf81df1745ab671c5f28788"><div class="ttname"><a href="a02486.html#a480fee3b9cf81df1745ab671c5f28788">tesseract::PageIterator::page_res_</a></div><div class="ttdeci">PAGE_RES * page_res_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00325">pageiterator.h:325</a></div></div>
<div class="ttc" id="aa02658_html"><div class="ttname"><a href="a02658.html">tesseract::Tesseract</a></div><div class="ttdef"><b>Definition:</b> <a href="a00224_source.html#l00172">tesseractclass.h:172</a></div></div>
<div class="ttc" id="aa02486_html"><div class="ttname"><a href="a02486.html">tesseract::PageIterator</a></div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00052">pageiterator.h:52</a></div></div>
<div class="ttc" id="aa01818_html_a550970d1662b3ac5830c6a28dba676b1"><div class="ttname"><a href="a01818.html#a550970d1662b3ac5830c6a28dba676b1">tesseract::ParagraphJustification</a></div><div class="ttdeci">ParagraphJustification</div><div class="ttdef"><b>Definition:</b> <a href="a00032_source.html#l00248">publictypes.h:248</a></div></div>
<div class="ttc" id="aa00029_html"><div class="ttname"><a href="a00029.html">platform.h</a></div></div>
<div class="ttc" id="aa02486_html_ae72a89d863ac231b9cfbab4c6004ad3d"><div class="ttname"><a href="a02486.html#ae72a89d863ac231b9cfbab4c6004ad3d">tesseract::PageIterator::scale_</a></div><div class="ttdeci">int scale_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00352">pageiterator.h:352</a></div></div>
<div class="ttc" id="aa01818_html_acac5bfbc6e9f8ca26f42ea3bad95d84e"><div class="ttname"><a href="a01818.html#acac5bfbc6e9f8ca26f42ea3bad95d84e">tesseract::WritingDirection</a></div><div class="ttdeci">WritingDirection</div><div class="ttdef"><b>Definition:</b> <a href="a00032_source.html#l00131">publictypes.h:131</a></div></div>
<div class="ttc" id="aa02486_html_a71077e1f85caeadd318ee8079295bdd7"><div class="ttname"><a href="a02486.html#a71077e1f85caeadd318ee8079295bdd7">tesseract::PageIterator::include_lower_dots_</a></div><div class="ttdeci">bool include_lower_dots_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00350">pageiterator.h:350</a></div></div>
<div class="ttc" id="aa02486_html_a5bcc04bef9fefefc856440bcfe15d9ab"><div class="ttname"><a href="a02486.html#a5bcc04bef9fefefc856440bcfe15d9ab">tesseract::PageIterator::word_length_</a></div><div class="ttdeci">int word_length_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00339">pageiterator.h:339</a></div></div>
<div class="ttc" id="aa01818_html_a28b14f9ab9d686fb45e130abc15c1781"><div class="ttname"><a href="a01818.html#a28b14f9ab9d686fb45e130abc15c1781">tesseract::TextlineOrder</a></div><div class="ttdeci">TextlineOrder</div><div class="ttdef"><b>Definition:</b> <a href="a00032_source.html#l00148">publictypes.h:148</a></div></div>
<div class="ttc" id="aa02486_html_acca34c1adcf494eca7dfefe74258f991"><div class="ttname"><a href="a02486.html#acca34c1adcf494eca7dfefe74258f991">tesseract::PageIterator::tesseract_</a></div><div class="ttdeci">Tesseract * tesseract_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00327">pageiterator.h:327</a></div></div>
<div class="ttc" id="aa00032_html"><div class="ttname"><a href="a00032.html">publictypes.h</a></div></div>
<div class="ttc" id="aa01818_html_aa26c22b65cc9765a0e747120f4287fd7"><div class="ttname"><a href="a01818.html#aa26c22b65cc9765a0e747120f4287fd7">tesseract::PageIteratorLevel</a></div><div class="ttdeci">PageIteratorLevel</div><div class="ttdef"><b>Definition:</b> <a href="a00032_source.html#l00216">publictypes.h:216</a></div></div>
<div class="ttc" id="aa02486_html_a409db505129bcd894cbe20b77f7663bb"><div class="ttname"><a href="a02486.html#a409db505129bcd894cbe20b77f7663bb">tesseract::PageIterator::word_</a></div><div class="ttdeci">WERD * word_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00337">pageiterator.h:337</a></div></div>
<div class="ttc" id="aa01818_html"><div class="ttname"><a href="a01818.html">tesseract</a></div><div class="ttdef"><b>Definition:</b> <a href="a00005_source.html#l00065">baseapi.h:65</a></div></div>
<div class="ttc" id="aa02818_html"><div class="ttname"><a href="a02818.html">PAGE_RES</a></div><div class="ttdef"><b>Definition:</b> <a href="a00374_source.html#l00073">pageres.h:73</a></div></div>
<div class="ttc" id="aa02486_html_a5ca6441056d5158068499a48788d987a"><div class="ttname"><a href="a02486.html#a5ca6441056d5158068499a48788d987a">tesseract::PageIterator::include_upper_dots_</a></div><div class="ttdeci">bool include_upper_dots_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00349">pageiterator.h:349</a></div></div>
<div class="ttc" id="aa02486_html_a4ea0a38b584bbc0047792ebe6b0294ce"><div class="ttname"><a href="a02486.html#a4ea0a38b584bbc0047792ebe6b0294ce">tesseract::PageIterator::cblob_it_</a></div><div class="ttdeci">C_BLOB_IT * cblob_it_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00347">pageiterator.h:347</a></div></div>
<div class="ttc" id="aa02834_html"><div class="ttname"><a href="a02834.html">PAGE_RES_IT</a></div><div class="ttdef"><b>Definition:</b> <a href="a00374_source.html#l00668">pageres.h:668</a></div></div>
<div class="ttc" id="aa02926_html"><div class="ttname"><a href="a02926.html">WERD</a></div><div class="ttdef"><b>Definition:</b> <a href="a00467_source.html#l00055">werd.h:55</a></div></div>
<div class="ttc" id="aa02486_html_a4468f4d9a7d73da56bc9e128705059ac"><div class="ttname"><a href="a02486.html#a4468f4d9a7d73da56bc9e128705059ac">tesseract::PageIterator::SetBoundingBoxComponents</a></div><div class="ttdeci">void SetBoundingBoxComponents(bool include_upper_dots, bool include_lower_dots)</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00190">pageiterator.h:190</a></div></div>
<div class="ttc" id="aa02486_html_a7c33ac80eda9144c2b857963457ace9c"><div class="ttname"><a href="a02486.html#a7c33ac80eda9144c2b857963457ace9c">tesseract::PageIterator::rect_top_</a></div><div class="ttdeci">int rect_top_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00355">pageiterator.h:355</a></div></div>
<div class="ttc" id="aa00029_html_a86e51270628c53ce7e2c23b1c2b4490e"><div class="ttname"><a href="a00029.html#a86e51270628c53ce7e2c23b1c2b4490e">TESS_API</a></div><div class="ttdeci">#define TESS_API</div><div class="ttdef"><b>Definition:</b> <a href="a00029_source.html#l00054">platform.h:54</a></div></div>
<div class="ttc" id="aa02486_html_a43f0c51fac0f0e60139487d5868812a3"><div class="ttname"><a href="a02486.html#a43f0c51fac0f0e60139487d5868812a3">tesseract::PageIterator::scaled_yres_</a></div><div class="ttdeci">int scaled_yres_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00353">pageiterator.h:353</a></div></div>
<div class="ttc" id="aa00032_html_a03566528a98c079dafeebf00502f2b60"><div class="ttname"><a href="a00032.html#a03566528a98c079dafeebf00502f2b60">PolyBlockType</a></div><div class="ttdeci">PolyBlockType</div><div class="ttdef"><b>Definition:</b> <a href="a00032_source.html#l00052">publictypes.h:52</a></div></div>
<div class="ttc" id="aa01818_html_a76ce0248fd3ba576ca053e9bb82e492f"><div class="ttname"><a href="a01818.html#a76ce0248fd3ba576ca053e9bb82e492f">tesseract::Orientation</a></div><div class="ttdeci">Orientation</div><div class="ttdef"><b>Definition:</b> <a href="a00032_source.html#l00116">publictypes.h:116</a></div></div>
<div class="ttc" id="aa02662_html"><div class="ttname"><a href="a02662.html">BlamerBundle</a></div><div class="ttdef"><b>Definition:</b> <a href="a00248_source.html#l00103">blamer.h:103</a></div></div>
<div class="ttc" id="aa02486_html_aa8eba0c6367dd6349fe903ac7c3860a4"><div class="ttname"><a href="a02486.html#aa8eba0c6367dd6349fe903ac7c3860a4">tesseract::PageIterator::rect_width_</a></div><div class="ttdeci">int rect_width_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00356">pageiterator.h:356</a></div></div>
<div class="ttc" id="aa02486_html_a2e33ff0e1d949366720fe29a7203f57e"><div class="ttname"><a href="a02486.html#a2e33ff0e1d949366720fe29a7203f57e">tesseract::PageIterator::rect_left_</a></div><div class="ttdeci">int rect_left_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00354">pageiterator.h:354</a></div></div>
<div class="ttc" id="aa02486_html_a98d81a4da55f06637a0db60ac33cc814"><div class="ttname"><a href="a02486.html#a98d81a4da55f06637a0db60ac33cc814">tesseract::PageIterator::blob_index_</a></div><div class="ttdeci">int blob_index_</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l00341">pageiterator.h:341</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_00200a555532e7ec3afbcddd6091e65a.html">tesseract</a></li><li class="navelem"><a class="el" href="a00026.html">pageiterator.h</a></li>
<li class="footer">Generated on Thu Jan 30 2020 14:22:19 for tesseract by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
</ul>
</div>
</body>
</html>