C Code Generation

Generate C/C++ code and MEX functions for toolbox functions, classes, System objects, and blocks

Several Computer Vision Toolbox™ functions can generate C/C++ code. To generate C/C++ code from MATLAB® code that contains Computer Vision Toolbox functions, classes, or System objects, you must have a MATLAB Coder™ license. In general, the code you generate from Computer Vision Toolbox blocks is portable ANSI® C code. After you generate the code, you can deploy it on another machine.

For a list of usage notes and limitations using the supported functions, classes, and System objects, refer to the Code Generation Support, Usage Notes, and Limitations table.


Introduction to Code Generation with Feature Matching and Registration

This example shows how to use the MATLAB® Coder™ to generate C code for a MATLAB file.

Code Generation for Depth Estimation From Stereo Video

This example shows how to use the MATLAB® Coder™ to generate C code for a MATLAB function, which uses the stereoParameters object produced by Stereo Camera Calibrator app or the estimateCameraParameters function.

Code Generation for Face Tracking with PackNGo

This example shows how to generate code from Face Detection and Tracking Using the KLT Algorithm example with packNGo function.

Code Generation for Object Detection by Using YOLO v2

Generate CUDA® code for object detection using YOLO v2.

Multicore Simulation of Video Processing System

This example shows how a Video Processing system that implements counting of objects in input video.