Install and Use Computer Vision Toolbox Interface for OpenCV in MATLAB
Installation
After you install third-party support files, you can use the data with the Computer Vision Toolbox™ product. To install the Add-on support files, use one of the following methods:
Select Get Add-ons from the Add-ons drop-down menu from the MATLAB® desktop. The Add-on files are in the “bat365 Features” section.
Type
visionSupportPackages
in a MATLAB Command Window and follow the prompts.
Note
You must have write privileges for the installation folder.
When a new version of MATLAB software is released, repeat this process to check for updates. You can also check for updates between releases.
Support Package Contents
The Computer Vision Toolbox Interface for OpenCV in MATLAB support files are installed in the visionopencv
folder.
To find the path to this folder, type the following
command:
fileparts(which('mexOpenCV'))
visionopencv
folder contain these files and folder.
Files | Contents |
---|---|
clibopencv folder | Prebuilt utility functions based on the MATLAB
|
mexOpenCV.m file | Function to build MEX-files. |
example folder | Template Matching, Foreground Detector, and Oriented FAST and
Rotated BRIEF (ORB) examples using MEX-files. Each subfolder in the
example folder contains a README.txt file with
step-by-step instructions. |
registry folder | Registration files. |
README.txt file | Help file. |
The mex
function uses prebuilt OpenCV
libraries, which ship with the Computer Vision Toolbox product. Your compiler must be compatible with the one used to build the
libraries. The following compilers are used to build the OpenCV libraries for
MATLAB host:
Operating System | Compatible Compiler |
---|---|
Windows® 64 bit | Microsoft® Visual Studio® 2015 or later (Professional or Community editions) |
Linux® 64 bit | gcc-4.9.3 (g++) |
Mac 64 bit | Xcode 6.2.0 (Clang++) |