mexopencv provides MATLAB interface functions for using the OpenCV library.

kyamagu.github.io/mexopencv
mexopencv homepage screenshot

About mexopencv

mexopencv provides MATLAB mex functions that interface OpenCV APIs. The package includes more than 150 OpenCV functions and classes, plus a C++ MxArray class that converts between MATLAB native arrays and OpenCV data types for building custom mex functions.

Source code is obtained from GitHub and compiled in MATLAB with mexopencv.make. It is an independent private project, separate from the official MATLAB module in the OpenCV contrib repository and from the MathWorks Computer Vision System Toolbox kit.

Key features

  • Call OpenCV functions and classes from MATLAB through mex functions
  • Convert between MATLAB arrays and OpenCV types with MxArray class
  • Create custom mex functions using included C++ development kit
  • Capture camera frames in MATLAB using cv.VideoCapture
  • Process images with wrapped functions such as cvtColor and equalizeHist
  • Compile the package in MATLAB with mexopencv.make command
Best for: MATLAB users who want to use OpenCV functions and develop custom mex functions.
Good for
  • Includes more than 150 OpenCV functions and classes
  • Provides MxArray utility for data conversion when adding functions
  • Code may be redistributed under BSD 3-Clause License
Watch out for
  • Separate private project, not the official OpenCV MATLAB module
  • Windows setup requires matching OpenCV path, architecture, and compiler version
  • Linux use can fail with library conflicts requiring LD_PRELOAD workaround

mexopencv at a glance

Type
Online tool
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

mexopencv alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

mexopencv FAQ

How do I get and compile mexopencv?
Clone the source with git clone git://github.com/kyamagu/mexopencv.git, then run mexopencv.make in MATLAB.
Is mexopencv the same as the official OpenCV MATLAB module?
No. It is a private project independent of the official MATLAB module in the OpenCV contrib repository.
How do I fix an Invalid MEX file error on Windows?
Check that Path points to the OpenCV dlls with architecture matching MATLAB, use a supported compiler selected with mex -setup, then run mexopencv.make('clean') and compile again.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing