Main Content

FromOpenCV

Converts OpenCV data types to Simulink data types

Since R2020a

Libraries:
Computer Vision Toolbox Interface for OpenCV in Simulink

Description

The FromOpenCV block converts the Simulink® OpenCV data types to Simulink data types.

Examples

Ports

Inputs

expand all

Input signal to the FromOpenCV block. The input can be of different data types. Each of the input data types determines the output data type of the block. For more information, see Mapping Input and Output Data Types.

Data Types: OpenCV types

Output

expand all

Output signal from the FromOpenCV block.

Data Types: Converted Simulink types

Parameters

expand all

Specifies the input data type of the FromOpenCV block. The table lists the one-to-one mapping of the input versus output data types of the FromOpenCV block.

Programmatic Use

Block Parameter: DataType
Type: character vector
Value: input data type
Default: 'Point2i'

Block Characteristics

Data Types

Direct Feedthrough

Yes

Multidimensional Signals

Yes

Variable-Size Signals

No

More About

expand all

Extended Capabilities

Version History

Introduced in R2020a