Data Types - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English

Data types will differ, depending on the combination of the depth of pixels and the number of channels in the image. The generic nomenclature of the parameter is listed below.

XF_<Number of bits per pixel><signed (S) or unsigned (U) or float (F)>C<number of channels>

For example, for an 8-bit pixel - unsigned - 1 channel the data type is XF_8UC1.

The following table lists the available data types for the xf::cv::Mat class:

Table 262 Table xf::cv::Mat Class - Available Data Types
Option Number of bits per Pixel Unsigned/ Signed/ Float Type Number of Channels
XF_2UC1 2 Unsigned 1
XF_8UC1 8 Unsigned 1
XF_8UC2 8 Unsigned 2
XF_8UC3 8 Unsigned 3
XF_8UC4 8 Unsigned 4
XF_10UC1 10 Unsigned 1
XF_10UC2 10 Unsigned 2
XF_10UC3 10 Unsigned 3
XF_10UC4 10 Unsigned 4
XF_12UC1 12 Unsigned 1
XF_12UC2 12 Unsigned 2
XF_12UC3 12 Unsigned 3
XF_12UC4 12 Unsigned 4
XF_16UC1 16 Unsigned 1
XF_16SC1 16 Signed 1
XF_32UC1 32 Unsigned 1
XF_32FC1 32 Float 1
XF_32FC3 32 Float 3
XF_32SC1 32 Signed 1