Main Content

ToOpenCV

Converts金宝appdata types to OpenCV data types

  • 图书馆:
  • Computer Vision Toolbox Interface for OpenCV in Simulink

Description

TheToOpenCVblock converts the Simulink®data types to Simulink OpenCV data types.

Ports

Inputs

expand all

Input signal to theToOpenCVblock. The input can be of different data types. Each of the input data types determines the output data type of the block.

Data Types:uint8|uint16|int8|int16|int32|single|double|Simulink.ImageType|CV_DMATCH_BUS|CV_RECT_BUS|CV_ROTATEDRECT_BUS|CV_TERMCRITERIA_BUS|CV_SIZE_BUS|CV_RANGE_BUS|CV_POINT2I_BUS|CV_POINT2F_BUS|CV_POINT2D_BUS|CV_POINT3I_BUS|CV_POINT3F_BUS|CV_POINT3D_BUS

Output

expand all

Output signal from theToOpenCVblock. The output signal supports OpenCV types. For more information, seeMapping Input and Output Data Types.

Data Types:OpenCV types

Parameters

expand all

Specifies the input data type of theToOpenCVblock. Thetablelists the one-to-one mapping of the input versus output data types of theToOpenCVblock.

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

Introduced in R2020a