Simulink.ImageType
Description
Use a Simulink.ImageType object to set and share image data types
      for signal, state, and parameter data in a model.
- Create an instance of this class in the MATLAB® base workspace. 
- Set the properties of the object to describe the image. 
- Assign the data type to supported blocks, which have a Data type parameter, that you want to conform to the data type. 
The benefits of the Simulink.ImageType data type include:
- Strong typing of image data at model interfaces. 
- Carrying image data attributes such as color format and pixel data type, eliminating the need to create and maintain secondary signals. 
- Enabling the Simulink® environment to interpret the data as an image. 
- Enabling custom data type replacement with third party implementation, such as the OpenCV class - cv::Mat.
Note
To simulate a model that contains Simulink.ImageType signal, set the
        model configuration parameter Language
          (SimTargetLang) to C++.
Creation
To create a Simulink.NumericType object programmatically, use the
        Simulink.NumericType function described below.
Syntax
Description
imageType = Simulink.ImageType returns a
            Simulink.Parameter object with default property values.
imageType = Simulink.ImageType(
          returns a Rows,Columns,Channels)Simulink.ImageType object and initializes the
            Rows, Columns, and
            Channels property to the specified values.
imageType = Simulink.ImageType(
          returns a Rows,Columns,Channels,'ClassUnderlying',ClassUnderlying,'ColorFormat',ColorFormat,'Layout',Layout)Simulink.ImageType object and additionally initializes the
          optional properties ClassUnderlying,
          ColorFormat, and Layout to the specified
          values.
Properties
Examples
Limitations
These blocks support simulation and code generation of a Simulink.ImageType
        object:
| Block Library | Block Name | 
|---|---|
| Sources | 
 | 
| Signal Routing | 
 | 
| Sinks | 
 | 
| Ports & Subsystems | 
 | 
| Discrete | 
 | 
| Signal Attributes | 
 | 
| User-Defined Functions | 
 | 
Extended Capabilities
Version History
Introduced in R2021b