C/C++ and Matlab types convertor

Bidirectional conversion between C/C++ type (STL, openCV) and Matlab matrix (compile or run time)

Download
Download

You are now following this Submission

Cite As

sun peng (2026). C/C++ and Matlab types convertor (https://nl.mathworks.com/matlabcentral/fileexchange/20927-c-c-and-matlab-types-convertor), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: C++ raw data dumper

Categories

Find more on Convert Image Type in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.9.0

Adapt to OpenCV 2.x ("cxtypes.h" no longer exists)

Download
1.8.0

Guidance to compiling with VC10

Download
1.7.0

* support for mxLOGICAL_CLASS conversion is added

Download
1.6.0

* Codes involving typename are modified to make it work with GCC
(Thank Jack. Z.G.Tan (zgtan(at)eee(dot)hku(dot)hk) for pointing it out:) )

Download
1.4.0

Modification on typename/typedef syntex to make it work with GCC
This job attributes to Martin Dale(http://www.mathworks.com/matlabcentral/fileexchange/authors/36049)
Thanks for his constant focus and constructive suggestions on this project:)

Download
1.3.0

* A bug in pix_iter_rgb::end() is fixed
(Thank Aviv Hurvitz(http://www.mathworks.com/matlabcentral/fileexchange/authors/40629) for pointing it out:) )

Download
1.2.0

minor modification on document

Download
1.1.0

* More types for conversion
* conversion between CvMat and mxArray (2D currently)
(All above are due to Dale Martin)
* Explicit function name. The old names are still valid but deprecated

Download
1.0.0

Minor modification on READEME

Download