intall octave in debian Wheezy, for image processing

what is octave …

simply word, octave is software for numerical (like MATLAB) but you can use for image processing ( Teori dan aplikasi pengolahan citra – Abdul Kadir)

to install octave in debian wheezy, we must install graphicsmagick first. graphicsmagick use as engine for processing image in octave. we will build graphicsmagick from source, becouse its need option quantum depth min 16bit, and also we will buil octave from source\

install all packages needed

sudo apt-get install g++ gcc gfortran make libblas-dev liblapack-dev libpcre3-dev libreadline-dev libarpack2-dev libcurl4-gnutls-dev libfftw3-dev libfontconfig1-dev libfreetype6-dev libglpk-dev libgraphicsmagick++-dev gnuplot libhdf5-serial-dev libqhull-dev libqrupdate-dev libsuitesparse-dev texinfo zlib1g-dev libgraphicsmagick++1-dev libgraphicsmagick++3 libgl1-mesa-dev libfltk1.3-dev libgl1-mesa-dev

download source graphicsmagick from

extract with your command or gui

install graphicsmagick

cd graphicmagics-1.3.19
./configure  --with-quantum-depth=16 --enable-shared --disable-static --with-magick-plus-plus=yes
sudo make install 

Set GraphicsMagick libs path

export PATH=$PATH:/usr/local/lib

download octave

configure and install octave

tar zxvf octave-3.8.1.tar.gz
cd octave-3.8.1
./configure --prefix=/usr/local/octave  --with-blas="-L/usr/lib -lblas" --with-lapack="-L/usr/lib -llapack" --with-fftw3f-libdir=/usr/local/fftw/lib --with-fftw3-includedir=/usr/local/fftw/include --without-curl --enable-shared --disable-static
sudo make install

make shortcut in bin, so you can use it as command

sudo ln /usr/local/octave/bin/octave-3.8.1 /usr/bin/octave

install packages images and dependecy so you can play with images

download package from
for octave image processing you need these control, general, signal and image package, download that four package

cd where-you-download-package-octave
> pkg install -verbose control-2.6.5.tar.gz general-1.3.4.tar.gz image-2.2.1.tar.gz   signal-1.3.0.tar.gz

test octave with this code

test octave with script

nano testOctave.m

input this code in testOctave.m

Img = imread('imgfolder/myimage.png');

test in command

octave> testOctave


Published by


just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s