|
Pandore - A library of image processing operators
|
How to program new operators
This tutorial presents the steps followed to build a new operator.
The example used in this tutorial is the programming of the morphological
erosion operator.
All the files below are available in 'example' folder
of the Pandore folder.
Example with UNIX / Linux / Mac OS X/ CYGWIN
- Get the following file: example0.cpp
- Get the following Makefile: Makefile.unix (or Makefile.sun for Solaris)
- Compile the file with: make -f Makefile.unix example0
- Get the following sample image: tangram.pan
- Launch the following command: ./example0 8 tangram.pan sortie.pan
- Check the result: pvisu sortie.pan
Example with MSDOS (avec Visual C++ ou Microsoft visual studio .NET)
- Get the following file: example0.cpp
- Get the following Makefile: Makefile.msdos
- Rename Makefile.msdos to Makefile: ren Makefile.msdos Makefile
- Compile the file with: nmake example0.exe
- Get the following sample image: tangram.pan
- Launch the following command: example0 8 tangram.pan sortie.pan
- Check the result: pvisu sortie.pan