template<int W>
void AXIvideo2IplImage( hls::stream<ap_axiu<W,1,1,1> >& AXI_video_strm,
                        IplImage* img );


  • AXI_video_strm – input AXI video stream in hls::stream format, compatible with AXI4-Stream protocol.
  • img – output image header in OpenCV IplImage format.


Converts data from AXI video stream (hls::stream) format to OpenCV IplImage 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 img must be no greater than W, the data width of TDATA in AXI4-Stream protocol.