Loading additional libraries in Scilab, the "MatLab" OpenSource
I had mentioned in the post MatLab tools for Linux on the program Scilab, a tool
OpenSource, similar to MatLab, for matrix operations, with versions for Linux, Mac and Windows.
I downloaded the same way apt-get and I'm using to work with image processing. However, when trying to use some functions for this purpose, I found that it does not come with standard libraries for that.
Thus, I had to search Google, until I found the libraries Toolbox SIP (Scilab Image Processing) and SIVP (Scilab Image and Video Processing) Toolbox. Unlike the pro SIVP SIP is the first processing also allows you to video files. I found these libraries also from the page Scilab ToolBox Center.
Both ToolBox need the OpenCV library. I tried downloading the file opencv-linux there on the official site, but it does not exist, so I had to look on google for opencv-linux1.1, I found this site.
You need to compile the package and do all the manual process of installation, so open a terminal in the folder where you download the file and type the following commands:
# Unpack the file opencv-1.1pre1.tar.gz tar-zxvf opencv-1.1pre1.tar.gz # Set up to compile OpenCV # The parameters passed to configure are: # - Enable-apps = compile sample applications # - With-ffmpeg = enable support for handling video with the ffmpeg library, as explained before # - Without-quicktime = do not use libraries of QuickTime, I think it is only necessary if you do not have QuickTime # Some parameters do not know which are, I should:) # To help type. / Configure - help CXXFLAGS =-fno-strict-aliasing . / Configure - enable-apps - with-ffmpeg - with-gnu-ld - with-x - without-quicktime CXXFLAGS =- fno-strict-aliasing # Compile make # Install sudo make install
Installation parameters withdrew this site. But there are informed that no further steps were necessary to me.
The library is available SIVP Sypnatic of Ubuntu 8.10, but an error occurs in the installation that could not solve.
And for prioress, or remove and left causau a big problem, because every time I tried to download a program via apt-get, it gave an error trying to finish installing the SIPV. I tried to download from SourceForge, but the file for version 0.5 did not exist. I found a site that I can not remember the sources of this version, but trying to build, there was also a mistake. LauchPad the repository is version 0.5 for Ubuntu 9.04, but ran in 8:10 with no problems. There are some prerequisites that are listed on the page and there are deb packages of them too, but in my case, everyone was already installed on my system. If you want to work with video, you need to install before the ffmpeg library for handling this type of file. You can download it via apt-get.
If that version 0.5.0 of SIVP, the library is installed in / usr/lib/sivp-0.5.0. To load external libraries in SciLab you need to load a file. Sce, usually loader.sce name. SIVP to the library, you must enter the load command in Scilab, followed by the name of the file. Sce to Jennings. Thus, type exec ( "/ usr/lib/sivp-0.5.0/loader.sce") that the functions will be ready for use. You can find documentation of library functions in http://sivp.sourceforge.net/doc.php.
The SIP, the other library for image processing, the current version 0.4 does not compile in Scilab 5.1, the current version, and there is a deb package for it. I found a deb package to version 0.3.99rc2 the repository of Ubuntu, not so less than version 0.4 available on the website. Having already installed OpenCV, as shown above, all other prerequisites are found on the page to download the deb package SIP, shown just above.
This version is installed in / usr / lib / scilab / contrib / sip, other than directory SIVP. Thus, to load the library in Scilab, type the command it exec ( "/ usr / lib / scilab / contrib / sip / loader.sce"). You can find documentation, including Portuguese, the home of the official website. I found a tutorial on this link.
I tested the SIP library and made some initial play. The coolest thing is that the tasks have the same signature of MatLab (name and parameters are the same), so it's easy to get the proposed exercises to MatLab and run on SciLab easily.
I have yet to figure out how to load these libraries automatically. If you find, post here.
To load the libraries dynamically, see this other post.
Finally, everyone knows that these tools opensouce are not as complete and powerful as MatLab. They have their shortcomings. A comparative analysis between Scilab and Matlab can be seen here.
2Related posts:
- Installing the Scilab libraries and loading from the menu Toolboxes
- Alternatives to Matlab Linux
- Ripping CD to MP3 with Sound Juicer in Linux
- Skype and error "Problem with audio playback" in Ubuntu
- RGB Color Generator
Related posts brought to you by Yet Another Related Posts Plugin.




I would like to know how to MAC, adding that library.
Dude, if you can install them in the MAC, the procedure for loading will be the same as the exec is the Scilab.
So, just know where the library was installed.
I had researched a few days ago, using apt-get MacOS to download and install software automatically via the command line, since the possibility of order here for some time I buy a Mac, and found the project FINK, which promises to bring the world of Unix software for MacOS
I would like to know how to install windows in the SIP. Download, unzip and now I'm lost without knowing how. Thank you.
Well, in Windows I do not know. But I imagine that in program files should have a folder for Scilab and within it, should have a folder for the extensions. In the case of Linux, this directory called contrib. Look there. you probably just have to unzip the files in that folder. If within the compressed package already exists a folder SIP, then just unzip straight into the contrib folder, but has needed to create a folder within SIP contrib and unpack the files there.
To load the library, should be the same. If she was placed in the right, a menu will appear the Scilab toolboxes.
But I think you can unzip the files anywhere, for example, in c: \ sip, then just manually load
as shown, using the exec command. See also this post,
Watch this video of how to install the Toolbox SIP in Windows.
http://www.youtube.com/watch?v=7go1z7ljzf4