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) | ononGenerates C++ code where images are represented by using OpenCV class
cv::MAT.offGenerates C++ code where images are represented by using C++ class
images::datatypes::Imageimplemented by The MathWorks®.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | On |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: ImplementImageWithCVMat |
| Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2021b
See Also
Simulink.ImageType (Computer Vision Toolbox)