| Contents | Index |
You can generate readable, efficient, and compact C/C++ code and MEX functions for a subset of toolbox functions that you call from MATLAB code. The generated code provides optimizations to meet the memory and data type requirements of target desktop and embedded systems.
In generated code, each supported toolbox function has the same name, arguments, and functionality as its Image Processing Toolbox counterparts. However, to generate code for these functions, you must adhere to certain limitations when calling the functions from your MATLAB source code, as described below.
For detailed information about MATLAB for code generation, refer to the Code Generation from MATLAB User's Guide documentation. Depending on which feature you use, there are additional required products. For a comprehensive list, see Which Code Generation Feature to Use.
You must have the Image Processing Toolbox software installed to generate C/C++ code from MATLAB for these functions.
| Function | Remarks/Limitations |
|---|---|
All inputs must be constants at compilation time. Expressions or variables are allowed if their values do not change. | |
Referring to the standard syntax: RGB = label2rgb(L, map, zerocolor, order)
|
![]() | Code Generation for Image Processing Toolbox Functions |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |