Main Content

Implement images using OpenCV Mat class

Option to represent images as OpenCV Mat class

Since R2021b

Model Configuration Pane: Code Generation / Data Type Replacement

Description

The Implement images using OpenCV Mat class parameter specifies whether to represent images as OpenCV class cv::Mat.

Dependencies

This parameter is used to generate C++ code only.

Settings

off (default) | on
on

Generates C++ code where images are represented by using OpenCV class cv::MAT.

off

Generates C++ code where images are represented by using C++ class images::datatypes::Image implemented by The MathWorks®.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityOn
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: ImplementImageWithCVMat
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2021b