This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Bring Custom Image Filter Algorithms as Reusable Blocks in Simulink

This example shows how to bring in C code image filter algorithms using C Caller blocks in a reusable Simulink library.

In this example, three image filter blocks are C Caller blocks in a library model. Their dependent C code is specified in library model custom code settings. ''View > Library Custom Code Settings > Simulation Target''.

The image filter C functions are implemented using ''Row-major'' array layout. Library custom code settings have ''Default function array layout'' set accordingly to ''Row-major''.

These library image filter blocks can be reused by adding them to models.