Leptonica  1.83.1
Image processing and image analysis suite
dewarp.h
Go to the documentation of this file.
1 /*====================================================================*
2  - Copyright (C) 2001 Leptonica. All rights reserved.
3  -
4  - Redistribution and use in source and binary forms, with or without
5  - modification, are permitted provided that the following conditions
6  - are met:
7  - 1. Redistributions of source code must retain the above copyright
8  - notice, this list of conditions and the following disclaimer.
9  - 2. Redistributions in binary form must reproduce the above
10  - copyright notice, this list of conditions and the following
11  - disclaimer in the documentation and/or other materials
12  - provided with the distribution.
13  -
14  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY
18  - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  - OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  *====================================================================*/
26 
27 #ifndef LEPTONICA_DEWARP_H
28 #define LEPTONICA_DEWARP_H
29 
110 #define DEWARP_VERSION_NUMBER 4
111 
113 struct L_Dewarpa
114 {
115  l_int32 nalloc;
116  l_int32 maxpage;
117  struct L_Dewarp **dewarp;
119  struct Numa *namodels;
121  struct Numa *napages;
123  l_int32 redfactor;
124  l_int32 sampling;
125  l_int32 minlines;
126  l_int32 maxdist;
127  l_int32 max_linecurv;
133  l_int32 max_edgeslope;
135  l_int32 max_edgecurv;
139  l_int32 useboth;
141  l_int32 check_columns;
144  l_int32 modelsready;
146 };
147 typedef struct L_Dewarpa L_DEWARPA;
148 
149 
151 struct L_Dewarp
152 {
153  struct L_Dewarpa *dewa;
154  struct Pix *pixs;
155  struct FPix *sampvdispar;
156  struct FPix *samphdispar;
157  struct FPix *sampydispar;
158  struct FPix *fullvdispar;
159  struct FPix *fullhdispar;
160  struct FPix *fullydispar;
161  struct Numa *namidys;
162  struct Numa *nacurves;
163  l_int32 w;
164  l_int32 h;
165  l_int32 pageno;
166  l_int32 sampling;
167  l_int32 redfactor;
168  l_int32 minlines;
169  l_int32 nlines;
170  l_int32 mincurv;
171  l_int32 maxcurv;
172  l_int32 leftslope;
173  l_int32 rightslope;
174  l_int32 leftcurv;
175  l_int32 rightcurv;
176  l_int32 nx;
177  l_int32 ny;
178  l_int32 hasref;
179  l_int32 refpage;
180  l_int32 vsuccess;
181  l_int32 hsuccess;
182  l_int32 ysuccess;
183  l_int32 vvalid;
184  l_int32 hvalid;
185  l_int32 skip_horiz;
187  l_int32 debug;
188 };
189 typedef struct L_Dewarp L_DEWARP;
190 
191 #endif /* LEPTONICA_DEWARP_H */
l_int32 minlines
Definition: dewarp.h:168
struct FPix * fullvdispar
Definition: dewarp.h:158
l_int32 skip_horiz
Definition: dewarp.h:185
l_int32 mincurv
Definition: dewarp.h:170
l_int32 pageno
Definition: dewarp.h:165
l_int32 vsuccess
Definition: dewarp.h:180
struct L_Dewarpa * dewa
Definition: dewarp.h:153
l_int32 hasref
Definition: dewarp.h:178
l_int32 h
Definition: dewarp.h:164
l_int32 sampling
Definition: dewarp.h:166
l_int32 hsuccess
Definition: dewarp.h:181
l_int32 leftcurv
Definition: dewarp.h:174
l_int32 vvalid
Definition: dewarp.h:183
l_int32 w
Definition: dewarp.h:163
struct FPix * fullydispar
Definition: dewarp.h:160
l_int32 redfactor
Definition: dewarp.h:167
l_int32 ysuccess
Definition: dewarp.h:182
struct Pix * pixs
Definition: dewarp.h:154
l_int32 nx
Definition: dewarp.h:176
l_int32 nlines
Definition: dewarp.h:169
l_int32 hvalid
Definition: dewarp.h:184
l_int32 maxcurv
Definition: dewarp.h:171
l_int32 refpage
Definition: dewarp.h:179
struct FPix * fullhdispar
Definition: dewarp.h:159
struct FPix * sampydispar
Definition: dewarp.h:157
struct FPix * sampvdispar
Definition: dewarp.h:155
struct Numa * nacurves
Definition: dewarp.h:162
l_int32 ny
Definition: dewarp.h:177
struct Numa * namidys
Definition: dewarp.h:161
struct FPix * samphdispar
Definition: dewarp.h:156
l_int32 rightcurv
Definition: dewarp.h:175
l_int32 leftslope
Definition: dewarp.h:172
l_int32 rightslope
Definition: dewarp.h:173
l_int32 debug
Definition: dewarp.h:187
l_int32 min_diff_linecurv
Definition: dewarp.h:129
l_int32 maxdist
Definition: dewarp.h:126
struct L_Dewarp ** dewarp
Definition: dewarp.h:117
l_int32 max_diff_linecurv
Definition: dewarp.h:131
l_int32 sampling
Definition: dewarp.h:124
l_int32 max_edgeslope
Definition: dewarp.h:133
l_int32 maxpage
Definition: dewarp.h:116
l_int32 max_edgecurv
Definition: dewarp.h:135
struct L_Dewarp ** dewarpcache
Definition: dewarp.h:118
l_int32 minlines
Definition: dewarp.h:125
l_int32 nalloc
Definition: dewarp.h:115
struct Numa * namodels
Definition: dewarp.h:119
l_int32 max_diff_edgecurv
Definition: dewarp.h:137
l_int32 max_linecurv
Definition: dewarp.h:127
l_int32 check_columns
Definition: dewarp.h:141
struct Numa * napages
Definition: dewarp.h:121
l_int32 redfactor
Definition: dewarp.h:123
l_int32 modelsready
Definition: dewarp.h:144
l_int32 useboth
Definition: dewarp.h:139