Main Content

From Simulink Image

Unpack numeric matrix from Simulink image

  • Library:
  • Computer Vision Toolbox / Utilities

Description

The From Simulink Image block converts Simulink® image data to matrix data.

Ports

Input

expand all

Input signal to the From Simulink Image block. The input is a Simulink image data type.

Data Types: Simulink.ImageType

Output

expand all

Output signal from the From Simulink Image block. The output is a matrix or an array, depending on the format of the input.

  • M-by-N matrix — The input is a Grayscale image. M and N are the height and width of the image, in pixels.

  • M-by-N-by-C matrix — The input is an RGB or BGR image. M and N are the height and width of the image, in pixels. C is the number of color channels.

Data Types: integer | single | double | Boolean

Parameters

expand all

Specify the dimensions of the output image signal. The expression must be a three-element numeric row vector of form: [Rows Columns Channels].

Programmatic Use

Block Parameter: ImageSize
Type: character vector
Value: character vector
Default: [480 640 3]

Block Characteristics

Data Types

double | single | integer | Boolean | image

Direct Feedthrough

yes

Multidimensional Signals

yes

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

Version History

Introduced in R2022a