5.0 | 5 ratings Rate this file 44 Downloads (last 30 days) File Size: 13.5 KB File ID: #41530 Version: 1.1




29 Apr 2013 (Updated )

OpenCV-Matlab is a C++ template library to convert between Matlab and OpenCV images

| Watch this File

File Information

  opencv_matlab is a simple C++ template library that provides routines to
  convert between Matlab's and OpenCV's primary image representatations.

  This way it is possible to easily call OpenCV functions from C++-.mex-code
  as well as to use C++ routines developed for Matlab in projects that
  primarily use OpenCV.

  Naturally, converting images takes time and it's consequently not the best
  solution for code with strong time constraints, but it's often more than
  good enough for prototyping and/or demonstrators. And, most importantly,
  you don't have to rewrite/reimplement code, thus saving hours of time.

  I have used the code in several projects and if you want to cite something
  (yay!), then [1] might be most appropriate.

  [1] B. Schauerte, B. Kühn, K. Kroschel, R. Stiefelhagen, "Multimodal
      Saliency-based Attention for Object-based Scene Analysis". In Proc. 24th
      International Conference on Intelligent Robots and Systems (IROS),
      IEEE/RSJ, San Francisco, CA, USA, September 25-30, 2011.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
20 Aug 2015 Doug

Doug (view profile)

20 Aug 2015 Doug

Doug (view profile)

20 Aug 2015 Doug

Doug (view profile)

Thanks for creating this. I'm finding it very useful. One note for others that might like to use it - the following is the mex command in build_opencv_matlab_mex.m that worked for me. Using ubuntu 14.04 with matlab R2015a.

mex -v GCC='/usr/bin/gcc-4.7' opencv_matlab_mex.cpp -lopencv_core -lopencv_imgproc -I/usr/include -L/usr/lib/x86_64-linux-gnu.

the main point is that the syntax for mex has changes and my default compiler was gcc-4.8 so I had to install gcc-4.7 and let mex know that with the second command.

24 Jun 2015 akmal efenday

hello sir can you give the step how to setup opencv?tq

Comment only
06 May 2014 Daniel Bühler

First actually working demo of Matlab and OpenCV I have found, and I have tried a lot. Works well with recent (May 2014) versions of OpenCV (I use 2.4.8) which most of the other demos didnt.
Thanks a lot!

07 Jul 2013 Shaan

Shaan (view profile)

07 May 2013 1.1

- added examples

Contact us