Leptonica
1.83.1
Image processing and image analysis suite
jbclass.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_JBCLASS_H
28
#define LEPTONICA_JBCLASS_H
29
47
struct
JbClasser
48
{
49
struct
Sarray
*
safiles
;
50
l_int32
method
;
51
l_int32
components
;
53
l_int32
maxwidth
;
54
l_int32
maxheight
;
55
l_int32
npages
;
56
l_int32
baseindex
;
58
struct
Numa
*
nacomps
;
59
l_int32
sizehaus
;
60
l_float32
rankhaus
;
61
l_float32
thresh
;
62
l_float32
weightfactor
;
64
struct
Numa
*
naarea
;
66
l_int32
w
;
67
l_int32
h
;
68
l_int32
nclass
;
69
l_int32
keep_pixaa
;
70
struct
Pixaa
*
pixaa
;
71
struct
Pixa
*
pixat
;
73
struct
Pixa
*
pixatd
;
75
struct
L_DnaHash
*
dahash
;
76
struct
Numa
*
nafgt
;
78
struct
Pta
*
ptac
;
79
struct
Pta
*
ptact
;
80
struct
Numa
*
naclass
;
81
struct
Numa
*
napage
;
82
struct
Pta
*
ptaul
;
85
struct
Pta
*
ptall
;
86
};
87
typedef
struct
JbClasser
JBCLASSER
;
88
89
104
struct
JbData
105
{
106
struct
Pix
*
pix
;
107
l_int32
npages
;
108
l_int32
w
;
109
l_int32
h
;
110
l_int32
nclass
;
111
l_int32
latticew
;
112
l_int32
latticeh
;
113
struct
Numa
*
naclass
;
114
struct
Numa
*
napage
;
115
struct
Pta
*
ptaul
;
118
};
119
typedef
struct
JbData
JBDATA
;
120
121
123
enum
{
124
JB_RANKHAUS = 0,
125
JB_CORRELATION = 1
126
};
127
130
enum
{
131
JB_CONN_COMPS = 0,
132
JB_CHARACTERS = 1,
133
JB_WORDS = 2
134
};
135
138
#define JB_TEMPLATE_EXT ".templates.png"
139
#define JB_DATA_EXT ".data"
140
141
142
#endif
/* LEPTONICA_JBCLASS_H */
JbClasser
Definition:
jbclass.h:48
JbClasser::pixat
struct Pixa * pixat
Definition:
jbclass.h:71
JbClasser::thresh
l_float32 thresh
Definition:
jbclass.h:61
JbClasser::ptac
struct Pta * ptac
Definition:
jbclass.h:78
JbClasser::h
l_int32 h
Definition:
jbclass.h:67
JbClasser::safiles
struct Sarray * safiles
Definition:
jbclass.h:49
JbClasser::naarea
struct Numa * naarea
Definition:
jbclass.h:64
JbClasser::npages
l_int32 npages
Definition:
jbclass.h:55
JbClasser::rankhaus
l_float32 rankhaus
Definition:
jbclass.h:60
JbClasser::ptall
struct Pta * ptall
Definition:
jbclass.h:85
JbClasser::napage
struct Numa * napage
Definition:
jbclass.h:81
JbClasser::naclass
struct Numa * naclass
Definition:
jbclass.h:80
JbClasser::nclass
l_int32 nclass
Definition:
jbclass.h:68
JbClasser::ptaul
struct Pta * ptaul
Definition:
jbclass.h:82
JbClasser::maxwidth
l_int32 maxwidth
Definition:
jbclass.h:53
JbClasser::weightfactor
l_float32 weightfactor
Definition:
jbclass.h:62
JbClasser::nafgt
struct Numa * nafgt
Definition:
jbclass.h:76
JbClasser::pixaa
struct Pixaa * pixaa
Definition:
jbclass.h:70
JbClasser::keep_pixaa
l_int32 keep_pixaa
Definition:
jbclass.h:69
JbClasser::dahash
struct L_DnaHash * dahash
Definition:
jbclass.h:75
JbClasser::sizehaus
l_int32 sizehaus
Definition:
jbclass.h:59
JbClasser::w
l_int32 w
Definition:
jbclass.h:66
JbClasser::nacomps
struct Numa * nacomps
Definition:
jbclass.h:58
JbClasser::components
l_int32 components
Definition:
jbclass.h:51
JbClasser::ptact
struct Pta * ptact
Definition:
jbclass.h:79
JbClasser::method
l_int32 method
Definition:
jbclass.h:50
JbClasser::maxheight
l_int32 maxheight
Definition:
jbclass.h:54
JbClasser::baseindex
l_int32 baseindex
Definition:
jbclass.h:56
JbClasser::pixatd
struct Pixa * pixatd
Definition:
jbclass.h:73
JbData
Definition:
jbclass.h:105
JbData::latticew
l_int32 latticew
Definition:
jbclass.h:111
JbData::napage
struct Numa * napage
Definition:
jbclass.h:114
JbData::latticeh
l_int32 latticeh
Definition:
jbclass.h:112
JbData::npages
l_int32 npages
Definition:
jbclass.h:107
JbData::naclass
struct Numa * naclass
Definition:
jbclass.h:113
JbData::nclass
l_int32 nclass
Definition:
jbclass.h:110
JbData::pix
struct Pix * pix
Definition:
jbclass.h:106
JbData::ptaul
struct Pta * ptaul
Definition:
jbclass.h:115
JbData::h
l_int32 h
Definition:
jbclass.h:109
JbData::w
l_int32 w
Definition:
jbclass.h:108
L_DnaHash
Definition:
array_internal.h:108
Numa
Definition:
array_internal.h:68
Pix
Definition:
pix_internal.h:181
Pixa
Definition:
pix_internal.h:233
Pixaa
Definition:
pix_internal.h:243
Pta
Definition:
pix_internal.h:289
Sarray
Definition:
array_internal.h:119
src
jbclass.h
Generated by
1.9.1