Exercise E8:
- Implement a parallel program for edge detection in black and white pictures. As starting point you can use the serial version. It has to be compiled
together with pic.c, for example by typing
> gcc sedge.c pic.c -o sedge
The required definitions are contained in pic.h which has to be copied to the
same place as pic.c and sedge.c.
You can run the serial program sedge with
> sedge figurein.pnm figureout.pnm
where figurein.pnm is a pnm black and white file and figureout.pnm is
the name of the black and white picture which is calculated in sedge.
- Detailed instructions on how to use the picture i/o routines are given
in the file pic.h.
- Test your parallel program with black and white pictures which you have generated with the program in exercise E7.
- Determine the speedup of your parallel code compared to the serial version.
Back