Nuffnang Ads

Tuesday, December 4, 2012

Matlab 2012 link with opencv VS2010 (mex setup)

To use OpenCV library

Download mexopencv library from https://github.com/kyamagu/mexopencv

Prerequiste Components:
VC++ Compiler      (included in VS2010)
Microsoft SDK 7.1 (included in VS2010)
Matlab
  1. Open Matlab, type mex -setup in command windows
  2. Check whether there is any default compiler
  3. If no default compiler, choose a compiler from the list
  4. Type command cv.make('opencv_path','your\opencv\path')- replace your opencv path with your opencv directory (E.g. 'C:\OpenCV2.4')
  5. Let it compile
  6. After compiled, type addpath('mexopencv_path') - This must be called first for every project that used opencv library
  7. Type 'help cv' to display list of opencv command
  8. Can start using opencv library
Tutorial
http://www.cs.stonybrook.edu/~kyamagu/mexopencv/
https://github.com/kyamagu/mexopencv/blob/master/README.markdown

List of opencv function
http://www.cs.stonybrook.edu/~kyamagu/mexopencv/matlab/

No comments:

Post a Comment