Call OpenCV from MATLAB Examples

Version 0.0.4 (8,23 MB) von cui,xingxing
Elegant Use of OpenCV in MATLAB
45 Downloads
Aktualisiert 4. Sep 2023

Lizenz anzeigen

How to elegantly use OpenCV in the MATLAB environment
Matlab call OpenCV two methods, each with its own advantages and disadvantages, to find a suitable for their own scenarios can be used to provide seveal simple call sample programs.
  • C++ MEX API
  • Call python(OpenCV) from MATLAB
The first is to use the C++ MEX API to create MATLAB functions, which has the advantage of providing the efficiency of a C++ program and the ability to access external functions and libraries from MATLAB, supporting more modern C++ programming patterns and object-oriented design, multi-threaded MEX, copy-on-write semantics, and so on, provided that you are using R2018a or a higher version.
The second is to call the OpenCV library directly from the python environment in MATLAB. Since the Python language provides a protocol for accessing memory buffers and MATLAB implements this Python buffer protocol for its arrays, there is no need to copy and reproduce the data to achieve the sharing of the underlying data under the same process, and there is no need to do frequent data type conversion at non-essential moments.
https://zhuanlan.zhihu.com/p/653365459

Zitieren als

cui,xingxing (2024). Call OpenCV from MATLAB Examples (https://www.mathworks.com/matlabcentral/fileexchange/134466-call-opencv-from-matlab-examples), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2023a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
0.0.4

update logo

0.0.3

Add English description

0.0.2

add zhihu URL

0.0.1