#include "cips.h"
main(argc, argv)
int argc;
char *argv[];
{
char name1[80], name2[80];
float k_diffuse, k_specular, eta, L[3];
long length, width;
short **the_image;
short **out_image;
strcpy(name1, argv[1]);
strcpy(name2, argv[2]);
k_diffuse = atof(argv[3]);
k_specular = atof(argv[4]);
eta = atof(argv[5]);
L[0] = atof(argv[6]);
L[1] = atof(argv[7]);
L[2] = atof(argv[8]);
.
.
.
routine calls to create arrays and read the input image
.
.
.
lambert(the_image, out_image,
k_diffuse, k_specular, eta, L,
length, width);
.
.
.
routine calls to free arrays and write the output image
.
.
.
} /* ends main */