Skip to Main Content Skip to Search
Product Documentation

Supported Functions

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.

FunctionRemarks/Limitations

fspecial

All inputs must be constants at compilation time. Expressions or variables are allowed if their values do not change.

label2rgb

Referring to the standard syntax:

RGB = label2rgb(L, map, zerocolor, order)
  • Submit at least two input arguments: the label matrix, L, and the colormap matrix, map.

  • map must be an n-by-3, double, colormap matrix. You cannot use a string containing the name of a MATLAB colormap function or a function handle of a colormap function.

  • If you set the boundary color zerocolor to the same color as one of the regions, label2rgb will not issue a warning.

  • If you supply a value for order, it must be 'noshuffle'.

  


Recommended Products

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