Octave bindings for OpenCV

[ Octave bindings for OpenCV ]
Here are Octave bindings for OpenCV, a collection of over 500 functions implementing computer vision, image processing, machine learning, and general-purpose numeric algorithms. The library can optionally use Intel’s IPP library for better performance (via MMX, SSE, SSE2, etc).

This is a port of the Python bindings for OpenCV, and as such lives in the OpenCV source tree. When configured properly, the tree will produce an Octave binary package.

You must have a recent version of SWIG in your PATH (like from SVN, such that it supports Octave) and configure the tree with –with-octave and –with-swig. The build will produce an Octave package at $prefix/share/opencv/opencv-1.0.tar.gz. For example (assuming the loader sees /usr/local/lib),

$ tar xzf octave-opencv-031808.tar.gz
$ cd opencv-031808
$ ./configure --with-swig --with-octave
$ make
$ make install
$ octave -q
octave:1>> pkg install /usr/local/share/opencv/octave/opencv-1.0.tar.gz
octave:2>> pkg list
Package Name  | Version | Installation directory
      opencv *|   1.0.0 | /home/x/octave/opencv-1.0.0
octave:3> I=cvLoadImage("image002.png");


Using the library
There is extensive documention on the library available here, and online help is available using the help command in octave. The online help gives only the function prototypes, but when used in conjunction with the OpenCV manual, it should be sufficient to use the library.

Interoperability with Octave matrices and images is provided via the cv2mat, mat2cv, cv2im, and im2cv functions. There is online help available for these.


3/27/08: These bindings have been integrated into OpenCV. Latest sources are now available only from OpenCV CVS.

3/17/08: first release; alpha quality. Samples translated but not all running.
octave-opencv-031808.tar.gz (patched opencv, based on recent cvs snapshot)
octave-opencv-031808.patch.gz (just the patch)

octave-opencv was written by Xavier Delacour. Please send feedback, bugs, and/or patches to xavier dot delacour at gmail dot com.


Author: iotmaker

I am interested in IoT, robot, figures & leadership. Also, I have spent almost every day of the past 15 years making robots or electronic inventions or computer programs.

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s