Main Content

Image Attributes

Output attributes of Simulink image signal

Since R2022b

  • Image Attributes block

Libraries:
Computer Vision Toolbox / Utilities

Description

The Image Attributes block outputs attributes of Simulink image signal as numeric data. Use Image Attributes block to:

  • Display image attributes for debugging purposes.

  • Use image attributes in control or data flow of an image processing algorithm.

Examples

Ports

Input

expand all

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

Data Types: Simulink.ImageType

Output

expand all

Number of rows in the image data, returned as a positive integer.

Data Types: uint32

Number of columns in the image data, returned as a positive integer.

Data Types: uint32

Number of color channels or samples for each pixel in the array, returned as 1, 3, or 4. The number of channels correspond to the number of color channels in the color format of the image data. These are the values of Channels for the supported color formats:

Color FormatChannels
Grayscale1
RGB3
BGR3
BGRA4

Data Types: uint32

Data type of the underlying image data, returned as one of these values:

  • 'uint8'

  • 'int8'

  • 'uint16'

  • 'int16'

  • 'uint32'

  • 'int32'

  • 'single'

  • 'double'

  • 'boolean'

Data Types: string

Color format of the underlying image data, returned as 'RGB', 'Grayscale', 'BGR', or 'BGRA'. The color format determines what each color channel of a pixel in the image represents.

Data Types: string

Memory arrangement of the matrix data in the image, returned as 'ColumnMajor' or 'RowMajor'.

Data Types: string

Block Characteristics

Data Types

integer | string | image

Direct Feedthrough

yes

Multidimensional Signals

yes

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

Version History

Introduced in R2022b