• Subscribe

    Subscribe to This Week In Panospace by eMail.
    Subscribe in a reader
  • License

    Creative Commons License
    This work is © 2008-2012
    by Yuval Levy
    and licensed under a
    Creative Commons License.
  • Entries

    May 2009
    M T W T F S S
    « Apr   Jun »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Archives

Get Ready to MathMap

MathMap is the GIMP Plug-In used to mathematically transform images. It is particularly useful with panoramas. The following is a quick recipe to a working MathMap installation. It is for Ubuntu 9.04, but you can easily adapt it to any recent system. Start a terminal window and hack on the keyboard. No more skills required than basic reading and typing, promised!

GIMP

To install GIMP in Ubuntu 9.04 is as simple as

sudo apt-get install gimp

However we need a recent version (>2.6.0) of GIMP, so if an older version is included in your distribution (e.g. 8.04 LTS), you’ll need to build GIMP from source. The following worked on my 8.04 LTS:

sudo apt-get build-dep gimp
mkdir src
cd src
wget ftp://ftp.gimp.org/pub/babl/0.0/babl-0.0.22.tar.bz2
tar -jxvf babl-0.0.22.tar.bz2
cd babl-0.0.22
./configure
make
sudo make install
sudo ldconfig
cd ..
cd src
wget ftp://ftp.gimp.org/pub/gegl/0.0/gegl-0.0.22.tar.bz2
tar -jxvf gegl-0.0.22.tar.bz2
cd gegl-0.0.22
./configure
make
sudo make install
sudo ldconfig
cd ..
wget ftp://ftp.gimp.org/pub/gimp/stable/gimp-2.6.6.tar.bz2
tar -jxvf gimp-2.6.6.tar.bz2
cd gimp-2.6.6
./configure
make
sudo make install
sudo ldconfig

This should replace your current (older) GIMP with a standard GIMP 2.6.6. If you want to keep multiple versions of GIMP side by side, or if you have other special needs, or if the above instructions do not work, you may want to look here for configuration options.

MathMap

Now that we got GIMP working, it is time to get MathMap. Unfortunately it is not yet part of the Ubuntu distribution, so your computer will have to build it for you. Fortunately, it is a straightforward process. Just type:

sudo apt-get install clisp clisp-dev flex bison gsl-bin libgsl0-dev libgimp2.0-dev libgif-dev libjpeg62-dev libpng12-dev libgtksourceview-dev
wget http://www.complang.tuwien.ac.at/schani/mathmap/files/mathmap-1.3.4.tar.gz
tar xvf mathmap-1.3.4.tar.gz
cd mathmap-1.3.4/
make
sudo make install

You may have to edit the Makefile before executing make. I did not have to do that in Ubuntu.
You’re set. Have fun MathMapping! There is a whole flick group dedicated to it.

Update June 2011

A reader commented that the above instructions no longer work, so I tried again.  This is with Kubuntu 11.10 and a newer MathMap release.  Note the added and changed dependencies in the first line.  This time I did not build Gimp from source, the version delivered with Kubuntu 11.10 was good enough:

sudo apt-get install clisp clisp-dev flex bison gsl-bin libgsl0-dev libgimp2.0-dev libgif-dev libjpeg62-dev libpng12-dev libgtksourceview2.0-dev doxygen
wget http://www.complang.tuwien.ac.at/schani/mathmap/files/mathmap-1.3.5.tar.gz
tar xvf mathmap-1.3.5.tar.gz
cd mathmap-1.3.5/
make
sudo make install