PDF Print E-mail
Written by Batuhan Osmanoglu   
Monday, 13 December 2010 15:45

Makefiles for Ghiglia and Pritt Unwrapping Codes

Ghiglia and Pritt published "the bible" for 2D unwrapping in 1998, and included C codes for several unwrapping algorithms. The codes are available on the book's FTP site, available to the owners of the book. To run these programs, you will need to compile them.

 

There are of course more than one way to compile C code. Interested readers can check out the references at the end of this post. The way that I like is to prepare makefiles. The advantages of makefiles over just using commands are:

 

  • Repeated use: no need to remember what files were required to compile the code.
  • Distribution: one can share the makefiles.
  • Clean: run clean option to remove object files from the source directory.
Anyhow, the makefiles are located in this zip archive. To compile the programs using these Makefiles:
  1. Download the source code from the Wiley FTP site.
  2. Unzip the source code.
  3. Download the Makefiles from here.
  4. Unzip the Makefiles in the same folder (inside phase/code folder)
  5. cd into the source code folder (phase/code)
  6. make -f Makefile_mainlpno to compile lpno (L-p Norm unwrapping code).
  7. make -f Makefile_mainlpno clean to remove the object files.
  8. repeat 6-7 for other programs you are interested...

 

See also:

 

 

Last Updated on Monday, 13 December 2010 16:08