cvMat2AXIvideo


Synopsis

template<int W>
void cvMat2AXIvideo( cv::Mat& cv_mat,
                     hls::stream<ap_axiu<W,1,1,1> >& AXI_video_strm );

Parameters

  • cv_mat – input image in OpenCV cv::Mat format.
  • AXI_video_strm – output AXI video stream in hls::stream format, compatible with AXI4-Stream protocol.

Description


Converts data from OpenCV cv::Mat format to AXI video stream (hls::stream) format.
Image data must be stored in cv_mat, and AXI_video_strm must be empty before invocations.
The data width (in bits) of a pixel in cv_mat must be no greater than W, the data width of TDATA in AXI4-Stream protocol.