How to use this library?

You should first install the library (see Installation). After installation, you can take a look at the examples in the 'examples' directory. The corresponding executable programs are to be found in the 'bin' directory.
Assume for example that you have generated the examples with

 make examples
You can run a test program with:
 bin/morpho img/pinguin.pgm test.pgm 1 2 9

This will write an image called test.pgm that results from a two-dimensional erosion of image pinguin.pgm with a 9 by 9 squared structuring element.

Write your own programs and call the library

Once you have installed the library, you only need to include the header file libmorpho.h in your program and link it with the library. Make sure the linker finds both the header file and the library (use the -L and -I switches to explicitely specify their locations if the linker can't find them).

You can find profiled output of the performance in Performances output by GPROF.


Telecommunications and Imaging Laboratory - Institut Montefiore - Université de Liège