1 /****************************************************************************** 2 ** Filename: mfdefs.h 3 ** Purpose: Definition of micro-features 4 ** Author: Dan Johnson 5 ** History: Mon Jan 22 08:42:13 1990, DSJ, Created. 6 ** 7 ** (c) Copyright Hewlett-Packard Company, 1988. 8 ** Licensed under the Apache License, Version 2.0 (the "License"); 9 ** you may not use this file except in compliance with the License. 10 ** You may obtain a copy of the License at 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** Unless required by applicable law or agreed to in writing, software 13 ** distributed under the License is distributed on an "AS IS" BASIS, 14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ** See the License for the specific language governing permissions and 16 ** limitations under the License. 17 ******************************************************************************/ 18 #ifndef MFDEFS_H 19 #define MFDEFS_H 20 21 /**---------------------------------------------------------------------------- 22 Include Files and Type Defines 23 ----------------------------------------------------------------------------**/ 24 #include "oldlist.h" 25 #include "matchdefs.h" 26 #include "xform2d.h" 27 28 /* maximum size of a bulge for length=1 is sqrt(2)/3 */ 29 #define BULGENORMALIZER 0.942809041 30 31 /* definition of a list of micro-features */ 32 typedef LIST MICROFEATURES; 33 34 /* definition of structure of micro-features */ 35 #define MFSIZE 6 36 typedef FLOAT32 MFBLOCK[MFSIZE]; 37 typedef FLOAT32 *MICROFEATURE; 38 39 /* definitions of individual micro-feature parameters */ 40 #define XPOSITION 0 41 #define YPOSITION 1 42 #define MFLENGTH 2 43 #define ORIENTATION 3 44 #define FIRSTBULGE 4 45 #define SECONDBULGE 5 46 47 /**---------------------------------------------------------------------------- 48 Macros 49 ----------------------------------------------------------------------------**/ 50 51 /* macros for accessing micro-feature lists */ 52 #define NextFeatureOf(L) ( (MICROFEATURE) first_node ( L ) ) 53 54 /**---------------------------------------------------------------------------- 55 Public Function Prototypes 56 ----------------------------------------------------------------------------**/ 57 MICROFEATURE NewMicroFeature(); 58 59 void FreeMicroFeatures(MICROFEATURES MicroFeatures); 60 #endif 61