Use of function of Image Processing Toolbox for code generation

1 次查看(过去 30 天)
Hi everyone,
I am doing some video processing with Simulink and I want to use the functions 'bwareaopen' and 'imclose' from the Image Processing Toolbox, I use the inside a Matlab Function block and I want to use Rapid Accelerator but I get the following error for both of them:
The function 'bwareaopen' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
However, I found in Matlab documentation that the function does support it. Functions supported for Code Generation - Alphabetical List
When I use 'coder.extrinsic ('bwareaopen', 'strel','inclose'), the simulation runs, but it is too slow, so I am trying to speed it up.
I am using Matlab version R2013a.
Thanks in advance.

采纳的回答

Steven Lord
Steven Lord 2015-10-16
The documentation to which you linked is for the most recent release, which is currently release R2015b. According to the first entry in the Release Notes for release R2015b of Image Processing Toolbox BWAREAOPEN was enabled for code generation with MATLAB Coder in release R2015b.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by