Download mexopencv library from https://github.com/kyamagu/mexopencv
Prerequiste Components:
VC++ Compiler (included in VS2010)
Microsoft SDK 7.1 (included in VS2010)
Matlab
- Open Matlab, type mex -setup in command windows
- Check whether there is any default compiler
- If no default compiler, choose a compiler from the list
- Type command cv.make('opencv_path','your\opencv\path')- replace your opencv path with your opencv directory (E.g. 'C:\OpenCV2.4')
- Let it compile
- After compiled, type addpath('mexopencv_path') - This must be called first for every project that used opencv library
- Type 'help cv' to display list of opencv command
- 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