1 /* linescan.c -- linescan @ width/2 */
4 * author: frank.zirkelbach@physik.uni-augsburg.de
14 int main(int argc,char **argv) {
20 printf("usage: %s <filename>\n",argv[0]);
26 strcpy(bmp.file,argv[1]);
30 dprintf(2,"width = %d\n",bmp.info.width);
33 for(y=0;y<bmp.info.height;y++) {
34 printf("%f %d\n",1.0*(bmp.info.height/2-y)/(bmp.info.width*3),
35 (bmp.map[x].r+bmp.map[x].g+bmp.map[x].b)/3);