Below is a brief description of the basic functions you will need to
to load, save, create and process images.  The file 'test.cpp'
contains a simple program that loads an image from the current
directory, does some processing and saves the result to a new image.


image.h
-------

image<TYPE> *I = new image<TYPE>(width, height);
  creates an image of size width by height and pixels of type TYPE.  
  usefull types:
  uchar - integer between 0 and 255. (defined in misc.h)
  rgb   - color value. (defined in misc.h)
  int   - integer.
  float - floating point value.

delete I;
  de-allocate I.

imRef(I, x, y);
  returns value of I[x,y].

imRef(I, x, y) = v;
  assigns value v to I[x,y].

I->width();
  returns the with of I.

I->height();
  returns the height of I.

pnmfile.h
---------

image<uchar> *I = loadPGM(name);
  creates an image by loading the pgm file called name.

savePGM(I, name);
  saves an image<uchar> to a pgm file called name.

similar functions for PBM and PPM images.

