Use of function of Image Processing Toolbox for code generation

1 view (last 30 days)
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.

Accepted Answer

Steven Lord
Steven Lord on 16 Oct 2015
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!