Saturday 18 September 2010

How to Install Scilab Image Video Processing Toolbox in Linux Ubuntu

First of all, before installing SIVP toolbox, you've to install package below:
  1. Scilab (of course)
  2. OpenCV (1.0.0 or earlier)
To install scilab you can use either from source or binary file. Both have the same result. You can also use package manager to install this software. If you are advance user, i recommend you to use source or binary. If you use binary file, just put the package in the directory that you want to use. to execute these file, open terminal, enter the directory /scilab-5.2.x/bin and run scilab by write:

 $./scilab

 you can directly run scilab.

if you want to use package manager go to system/administration/synaptic package manager  on your ubuntu desktop and write scilab. then checklist the following:


scilab
scilab-cli
scilab-data
scilab-include
scilab-doc
scilab-full-bin
then apply...

after these process you can use scilab and it will appear in Application/Programming/ on your desktop.
>>Check it out Please..

To install OpenCV you can also use package manager or source file. If you use package manager, do as follows:
Go to Synaptic Package Manager, search for “opencv” and install the main “opencv” package and the following lib files:
libcv4
libcv-dev
libcvaux4
libcvaux-dev
libhighgui4
libhighgui-dev
opencv-doc
then apply..

After installing all the packages, open a terminal & type this code:
$export LD_LIBRARY_PATH=/home/opencv/lib
$export PKG_CONFIG_PATH=/home/opencv/lib/pkgconfig

To check the path where opencv & other lib files are stored, do:
$ pkg-config --cflags opencv
(output will come as)
-I/usr/include/opencv 

$ pkg-config --libs opencv
(output will come as)
-lcxcore -lcv -lhighgui -lcvaux -lml

These paths are needed to compile your opencv programs
Now You're Ready to Install SIVP Toolbox..
You've to download the SIVP source from this. Extract that file then copy it to directory where you put scilab. Put it in Scilab-5.2.x/share/scilab/contrib/

Before run this file you have to change permission to the fil:
/contrib/sivp/builder.sce by write
sudo chmod a+x builder.sce

Then run scilab and write:
cd 'SCI/contrib/sivp' (this is to enter sivp directory)
exec 'builder.sce'

After re-run scilab you can run this toolbox.
>>Check This Out..

ps: i've tried this way and i success (after 3 days, cause i'm really newbie in using linux)...

1 comment:

Yogi Aprilano said...

ok..i'll try first..