Main Content

OpenCV Interface for Simulink

Import OpenCV code into Simulink®

The Computer Vision Toolbox™ Interface for OpenCV in Simulink enables you to import OpenCV code into Simulink. This support package requires Computer Vision Toolbox and Simulink Coder™.

You can also generate C++ code from the Simulink model and deploy into your target hardware.

You can import OpenCV code to a Simulink model by using the OpenCV Importer app. For more information, see Install and Use Computer Vision Toolbox Interface for OpenCV in Simulink.

Blocks

FromOpenCVConverts OpenCV data types to Simulink data types
ToOpenCVConverts Simulink data types to OpenCV data types
Image To MatrixConverts Simulink image data to matrix data
Matrix To ImageConverts matrix data to Simulink image data

Classes

Simulink.ImageTypeSpecify image data type

Topics

Install and Use Computer Vision Toolbox Interface for OpenCV in Simulink

Import OpenCV code into Simulink.

Convert Between Simulink Image Type and Matrices

Integrate Simulink.ImageType data in model with blocks that operate on matrix only.

Featured Examples