head	1.2;
access;
symbols;
locks; strict;
comment	@ * @;


1.2
date	94.08.29.04.47.34;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.07.01.01.18.05;	author rjj;	state Exp;
branches;
next	;


desc
@Initial implementation for the Hopfield Neural Network algorithm.  Buggy!
@


1.2
log
@Added standard file header and exit() in main().
@
text
@// display-examplar.c   Section: 13.2
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.


#include "UcharDI.h"
#include "make-examplars.h"
#include "convert-hopfield-images.h"


// display the image, assuming it is an 1-d encoding of a 2-d
//    image that is  width  wide.
//
void display( const IA_Image<IA_Point<int>,int> & idi, int width ) {

    display( IA_Image<IA_Point<int>,u_char>(
	to_uchar( convert_to_2D( idi, width ) ) ) );
}


int  main() {

    // Write the examplars out just for the heck of it.
    write_examplars();

    display( examplar_1(), 10 );
    display( examplar_2(), 10 );
    display( examplar_3(), 10 );
    display( examplar_4(), 10 );
    display( examplar_9(), 10 );
    display( examplar_X(), 10 );

    exit( 0 );
}
@


1.1
log
@Initial revision
@
text
@d1 3
a3 1
// display-examplar.c
d5 1
d21 1
a21 1
void  main() {
d33 1
@
