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

  1. Get the following file: example0.cpp

  2. Get the following Makefile: Makefile.unix (or Makefile.sun for Solaris)

  3. Compile the file with: make -f Makefile.unix example0

  4. Get the following sample image: tangram.pan

  5. Launch the following command: ./example0 8 tangram.pan sortie.pan

  6. Check the result: pvisu sortie.pan

Example with MSDOS (avec Visual C++ ou Microsoft visual studio .NET)

  1. Get the following file: example0.cpp

  2. Get the following Makefile: Makefile.msdos

  3. Rename Makefile.msdos to Makefile: ren Makefile.msdos Makefile

  4. Compile the file with: nmake example0.exe

  5. Get the following sample image: tangram.pan

  6. Launch the following command: example0 8 tangram.pan sortie.pan

  7. Check the result: pvisu sortie.pan


The Pantheon project
Image Team GREYC Laboratory
UMR CNRS 6072 - ENSICAEN - University of Caen, France
This page was last modified on 27 June 2014