Tesseract 3.02

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
clusttool.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Filename: clusttool.h
3 ** Purpose: Definition of clustering utility tools
4 ** Author: Dan Johnson
5 ** History: 6/6/89, 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 __CLUSTERTOOL__
19 #define __CLUSTERTOOL__
20
21 //--------------------------Include Files---------------------------------------
22 #include "host.h"
23 #include "cluster.h"
24 #include <stdio.h>
25
26 /*-------------------------------------------------------------------------
27 Public Funtion Prototype
28 --------------------------------------------------------------------------*/
29 uinT16 ReadSampleSize(FILE *File);
30
31 PARAM_DESC *ReadParamDesc(FILE *File, uinT16 N);
32
33 PROTOTYPE *ReadPrototype(FILE *File, uinT16 N);
34
35 PROTOSTYLE ReadProtoStyle(FILE *File);
36
37 FLOAT32 *ReadNFloats (FILE * File, uinT16 N, FLOAT32 Buffer[]);
38
39 void WriteParamDesc (FILE * File, uinT16 N, PARAM_DESC ParamDesc[]);
40
41 void WritePrototype(FILE *File, uinT16 N, PROTOTYPE *Proto);
42
43 void WriteNFloats (FILE * File, uinT16 N, FLOAT32 Array[]);
44
45 void WriteProtoStyle(FILE *File, PROTOSTYLE ProtoStyle);
46
47 void WriteProtoList(
48 FILE *File,
49 uinT16 N,
50 PARAM_DESC ParamDesc[],
51 LIST ProtoList,
52 BOOL8 WriteSigProtos,
53 BOOL8 WriteInsigProtos);
54
55 //--------------Global Data Definitions and Declarations---------------------
56 // define errors that can be trapped
57 #define ILLEGALSAMPLESIZE 5000
58 #define ILLEGALCIRCULARSPEC 5001
59 #define ILLEGALMINMAXSPEC 5002
60 #define ILLEGALSIGNIFICANCESPEC 5003
61 #define ILLEGALSTYLESPEC 5004
62 #define ILLEGALSAMPLECOUNT 5005
63 #define ILLEGALMEANSPEC 5006
64 #define ILLEGALVARIANCESPEC 5007
65 #define ILLEGALDISTRIBUTION 5008
66 #define ILLEGALFLOAT 5009
67 #define ILLEGALESSENTIALSPEC 5013
68 #endif