Main Content

OpenCV Interface Support

MEX-file support for OpenCV library functions

The support files provide an OpenCV Interface C++ API for integrating your OpenCV C++ code into MATLAB®. You can also use these support files to build MEX-files that call OpenCV functions. The support files contain graphics processing unit (GPU) support.

SeeInstall and Use Computer Vision Toolbox Interface for OpenCV in MATLABprocedures and examples.

Functions

expand all

ocvCheckFeaturePointsStruct Check thatMATLABstruct represents feature points
ocvStructToKeyPoints ConvertMATLAB特征点struct OpenCVKeyPointvector
ocvKeyPointsToStruct Convert OpenCVKeyPointvector toMATLABstruct
ocvMxArrayToCvRect Convert aMATLABstruct representing a rectangle to an OpenCVCvRect
ocvCvRectToMxArray Convert OpenCVCvRectto aMATLABstruct
ocvCvBox2DToMxArray Convert OpenCVCvBox2Dto aMATLABstruct
ocvCvRectToBoundingBox_{DataType} ConvertvectortoM-by-4mxArrayof bounding boxes
ocvMxArrayToSize_{DataType} Convert 2-elementmxArraytocv::Size.
ocvMxArrayToImage_{DataType} Convert column majormxArrayto row majorcv::Matfor image
ocvMxArrayToMat_{DataType} Convert column majormxArrayto row majorcv::Matfor generic matrix
ocvMxArrayFromImage_{DataType} Convert row majorcv::Matto column majormxArrayfor image
ocvMxArrayFromMat_{DataType} Convert row majorcv::Matto column majormxArrayfor generic matrix
ocvMxArrayFromVector_{DataType} Convert numericvectorTtomxArray
ocvMxArrayFromPoints2f ConvertsvectortomxArray
ocvMxGpuArrayToGpuMat_{DataType} Createcv::gpu::GpuMatfrommxArraycontaining GPU data
ocvMxGpuArrayFromGpuMat_{DataType} Create anmxArrayfromcv::gpu::GpuMatobject
visionSupportPackages Start installer to download, install, or uninstallComputer Vision Toolboxdata

Topics

Install and Use Computer Vision Toolbox Interface for OpenCV in MATLAB

Convert OpenCV data types to MATLAB supported data types