AXIvideo2_CvMat

AXIvideo2CvMat


Synopsis

template<int W>
void AXIvideo2CvMat( hls::stream<ap_axiu<W,1,1,1> >& AXI_video_strm,
                     CvMat* cvmat );

Parameters

  • AXI_video_strm – input AXI video stream in hls::stream format, compatible with AXI4-Stream protocol.
  • cvmat – output image pointer to OpenCV CvMat format.

Description


Converts data from AXI video stream (hls::stream) format to OpenCV CvMat format.
Image data must be stored in AXI_video_strm. Invoking this function will consume the data in AXI_video_strm.
The data width of a pixel in cvmat must be no greater than W, the data width of TDATA in AXI4-Stream protocol.