Readme for Hopfield network programs ------------------------------------ The programs are: * hmkpat32 - creates an activation pattern from a picture (ppm-format) * hteach32 - trains a hopfield network with pre-calculated activation patterns * huse32 - iterates a given picture through a ready-calculated network * hnet32 - test program for the hopfield network module All the activation and network data files are formatted as C source code, so they can be included or pasted into a C program easily. The programs are written using Microsoft Visual C++ 5.0 (german) and can be executed under Win32 (i.e. Win95/98/2000/NT dos box or console). hmkpat32 -------- Syntax: hmkpat32 loads the picture named (in PPM P6-format), separates the objects in the picture and saves an activation pattern for every found object to activation files. Those are called se-1.act, se-2.act,... by default; their names can be defined using the parameter, where a %d has to be substituted for the object number (e.g. sep0-%d.act) This program does nothing yet with the hopfield network; this is left to hteach32 and huse32. hteach32 -------- Syntax: hteach32 loads a set of activation pattern files and teaches them to a network. On program startup, the activation patterns and optionally a network file are loaded. The latter is always called hopfnet.net; if such a file doesn't exist, a new blank network is generated. The program also loads activation patterns from files called se-1.act, se-2.act,... by default; the filename mask can also be specified on the command line (see hmkpat32). Then the patterns are teached to the network times (default: 50 times) in an alternating way. The result is written to the file hopfnet.net (which is overwritten if it existed before). huse32 ------ Syntax: huse32 loads a picture (in PPM P6 format), separates the object in the picture and iterates them through the hopfield network which is loaded from the file called (default name: hopfnet.net). The resulting activation patterns are written to consecutive files called ca-1.act, ca-2.act,... by default (a filename mask can be specified using substituting the number with %d; see hmkpat32) hnet32 ------ Syntax: hnet32 tests the hopfield network module. It teaches one compiled-in pattern to the network 100 times and then iterates another pattern. The resulting activations are printed to the screen and saved to the file hnet.net.