1 /*******************************************************************************
4 This software was developed at the National Institute of Standards and
5 Technology (NIST) by employees of the Federal Government in the course
6 of their official duties. Pursuant to title 17 Section 105 of the
7 United States Code, this software is not subject to copyright protection
8 and is in the public domain. NIST assumes no responsibility whatsoever for
9 its use by other parties, and makes no guarantees, expressed or implied,
10 about its quality, reliability, or any other characteristic.
13 This software was developed to promote biometric standards and biometric
14 technology testing for the Federal Government in accordance with the USA
15 PATRIOT Act and the Enhanced Border Security and Visa Entry Reform Act.
16 Specific hardware and software products identified in this software were used
17 in order to perform the software development. In no case does such
18 identification imply recommendation or endorsement by the National Institute
19 of Standards and Technology, nor does it imply that the products and equipment
20 identified are necessarily the best available for the purpose.
22 *******************************************************************************/
24 /***********************************************************************
25 LIBRARY: LFS - NIST Latent Fingerprint System
28 AUTHOR: Michael D. Garris
30 UPDATED: 10/04/1999 Version 2 by MDG
32 Contains general global variable definitions required by the
33 NIST Latent Fingerprint System (LFS).
34 ***********************************************************************/
38 /*************************************************************************/
39 /* GOBAL DECLARATIONS */
40 /*************************************************************************/
46 /* Constants (C) for defining 4 DFT frequencies, where */
47 /* frequency is defined as C*(PI_FACTOR). PI_FACTOR */
48 /* regulates the period of the function in x, so: */
49 /* 1 = one period in range X. */
50 /* 2 = twice the frequency in range X. */
51 /* 3 = three times the frequency in reange X. */
52 /* 4 = four times the frequency in ranage X. */
53 double dft_coefs
[NUM_DFT_WAVES
] = { 1,2,3,4 };
55 /* Allocate and initialize a global LFS parameters structure. */
63 UNUSED_INT
, /* windowsize */
64 UNUSED_INT
, /* windowoffset */
72 HIGHCURV_VORTICITY_MIN
,
73 HIGHCURV_CURVATURE_MIN
,
74 UNUSED_INT
, /* min_interpolate_nbrs */
75 UNUSED_INT
, /* percentile_min_max */
76 UNUSED_INT
, /* min_contrast_delta */
87 /* Binarization Controls */
93 /* Minutiae Detection Controls */
96 HIGH_CURVE_HALF_CONTOUR
,
99 MIN_LOOP_ASPECT_RATIO
,
101 /* Minutiae Link Controls */
111 /* False Minutiae Removal Controls */
120 UNUSED_INT
, /* max_overlap_dist */
121 UNUSED_INT
, /* max_overlap_join_dist */
122 UNUSED_INT
, /* malformation_steps_1 */
123 UNUSED_INT
, /* malformation_steps_2 */
124 UNUSED_DBL
, /* min_malformation_ratio */
125 UNUSED_INT
, /* max_malformation_dist */
133 /* Ridge Counting Controls */
139 /* Allocate and initialize VERSION 2 global LFS parameters structure. */
140 LFSPARMS lfsparms_V2
= {
156 HIGHCURV_VORTICITY_MIN
,
157 HIGHCURV_CURVATURE_MIN
,
158 MIN_INTERPOLATE_NBRS
,
171 /* Binarization Controls */
174 UNUSED_INT
, /* isobin_grid_dim */
177 /* Minutiae Detection Controls */
179 MAX_HIGH_CURVE_THETA
,
180 HIGH_CURVE_HALF_CONTOUR
,
182 MIN_LOOP_ASPECT_DIST
,
183 MIN_LOOP_ASPECT_RATIO
,
185 /* Minutiae Link Controls */
186 UNUSED_INT
, /* link_table_dim */
187 UNUSED_INT
, /* max_link_dist */
188 UNUSED_INT
, /* min_theta_dist */
189 MAXTRANS
, /* used for removing overlaps as well */
190 UNUSED_DBL
, /* score_theta_norm */
191 UNUSED_DBL
, /* score_dist_norm */
192 UNUSED_DBL
, /* score_dist_weight */
193 UNUSED_DBL
, /* score_numerator */
195 /* False Minutiae Removal Controls */
205 MAX_OVERLAP_JOIN_DIST
,
206 MALFORMATION_STEPS_1
,
207 MALFORMATION_STEPS_2
,
208 MIN_MALFORMATION_RATIO
,
209 MAX_MALFORMATION_DIST
,
217 /* Ridge Counting Controls */
222 /* Variables for conducting 8-connected neighbor analyses. */
223 /* Pixel neighbor offsets: 0 1 2 3 4 5 6 7 */ /* 7 0 1 */
224 int nbr8_dx
[] = { 0, 1, 1, 1, 0,-1,-1,-1 }; /* 6 C 2 */
225 int nbr8_dy
[] = { -1,-1, 0, 1, 1, 1, 0,-1 }; /* 5 4 3 */
227 /* The chain code lookup matrix for 8-connected neighbors. */
228 /* Should put this in globals. */
229 int chaincodes_nbr8
[]={ 3, 2, 1,
233 /* Global array of feature pixel pairs. */
234 FEATURE_PATTERN feature_patterns
[]=
235 {{RIDGE_ENDING
, /* a. Ridge Ending (appearing) */
241 {RIDGE_ENDING
, /* b. Ridge Ending (disappearing) */
247 {BIFURCATION
, /* c. Bifurcation (disappearing) */
253 {BIFURCATION
, /* d. Bifurcation (appearing) */
259 {BIFURCATION
, /* e. Bifurcation (disappearing) */
265 {BIFURCATION
, /* f. Bifurcation (disappearing) */
271 {BIFURCATION
, /* g. Bifurcation (appearing) */
277 {BIFURCATION
, /* h. Bifurcation (appearing) */
283 {BIFURCATION
, /* i. Bifurcation (disappearing) */
289 {BIFURCATION
, /* j. Bifurcation (appearing) */