#if !defined(_PARA_UTIL_H_H) #define _PARA_UTIL_H_H #include #include #include "type-def.h" #if !defined(MAXFILENAME) #define MAXFILENAME 256 #endif typedef struct { char unsmoothedFile[MAXFILENAME]; char inputFile[MAXFILENAME]; char outFile[MAXFILENAME]; char seedFile[MAXFILENAME]; char networkInFile[MAXFILENAME]; char networkOutFile[MAXFILENAME]; /* The global inhibition or gray level difference threshold */ float global_inhibitor; float grayThreshold; int seed; int hidden_unit; int input_unit; int output_unit; int kernel_size; double ALPHA, BETA, ETA; double tol; int max_iteration; int forced_training; } CONTROL_INFO; #if defined(PARA_UTIL_SOURCE_CODE) void SetDefaultParameter(CONTROL_INFO *regionInfo); void DisplayParameter(CONTROL_INFO *regionInfo); int LoadParameter(char *fName,CONTROL_INFO *regionInfo); #else extern void SetDefaultParameter(CONTROL_INFO *regionInfo); extern void DisplayParameter(CONTROL_INFO *regionInfo); extern int LoadParameter(char *fName,CONTROL_INFO *regionInfo); #endif #endif