#include #include #include int main(int argc, char *argv[]) { unsigned char *tim, *oim; int rows, cols, colors, orows, ocols, ocolors; long j, k, aa; const int maxrows = 1024, maxcols = 1280; if(argc < 3) { printf("Usage: pgm2snns ( ...)\n"); exit(-1); } printf("SNNS pattern definition file V3.2\ngenerated at Swarthmore by pgm2snns\n\n"); printf("No. of patterns : %d\nNo. of input units : 1\nNo. of output units : 1\n", argc/2); printf("No. of variable input dimensions : 2\n"); printf("Maximum input dimensions : [ %d %d ]\n", maxrows, maxcols); printf("No. of variable output dimensions : 2\n"); printf("Maximum output dimensions : [ %d %d ]\n\n", maxrows, maxcols); for(aa=1;aa