Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pmi432 / LR07 / 2read / image processing toolbox guide.pdf
Скачиваний:
166
Добавлен:
18.03.2015
Размер:
18.08 Mб
Скачать

16

Code Generation for Image Processing Toolbox Functions

16 Code Generation for Image Processing Toolbox™ Functions

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.

 

 

 

Depending on which feature you use, there are additional required products.

 

 

 

For more information, see “MATLAB Coder™”.

 

 

 

You must have the MATLAB Coder and Image Processing Toolbox software

 

 

 

installed to generate C/C++ code from MATLAB for these functions.

 

 

 

 

 

 

 

Function

 

Remarks/Limitations

 

 

 

 

 

 

 

bwlookup

 

For best results, specify an input image of class logical.

 

 

bwmorph

 

The text string specifying the operation must be a constant and, for

 

 

 

 

best results, specify an input image of class logical.

 

 

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.

 

 

 

 

 

 

16-2

Supported Functions

Function

Remarks/Limitations

 

 

 

 

 

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

 

 

16-3

16 Code Generation for Image Processing Toolbox™ Functions

16-4

Соседние файлы в папке 2read