To Simulink Image
Libraries:
Computer Vision Toolbox /
Utilities
Description
The To Simulink Image block converts matrix data to Simulink® image data.
Examples
Track Marker Using Simulink Images
Track a marker on a whiteboard by using images of the Simulink.ImageType
data type.
Ports
Input
Port_1 — Input signal
matrix
Input signal to the To Simulink Image block. The input is a numerical matrix.
Data Types: integer
| single
| double
| Boolean
Output
Port_1 — Output signal
Simulink.ImageType
Output signal from the To Simulink Image block. The output is an image of
Simulink.ImageType
data type.
Data Types: Simulink.ImageType
Parameters
Output data type — Data type of output signal values
Inherit: auto
(default) | Simulink.ImageType(480,640,3)
Specify the output data type of the image signal.
Click the Show data type assistant button to display the Data Type Assistant, which helps you set the data type attributes. For more information, see Specify Data Types Using Data Type Assistant (Simulink).
You can specify any of these options:
Inherited data type
Simulink image data type — Use the constructor for
Simulink.ImageType
object and specify the properties to describe the image. By default, the data type usesSimulink.ImageType(480,640,3)
expression.Custom data type — Use a MATLAB® expression that represents the rows, columns, and channels of the image respectively.
Programmatic Use
Block Parameter:
OutDataTypeStr |
Type: character vector |
Value:
Inherit: auto |
Simulink.ImageType(480,640,3) | <data
type expression> |
Default:
Inherit: auto
|
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Supports C++ code generation.
Version History
Introduced in R2022a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)