hlsWindow2CvMat


Synopsis

template<int ROWS, int COLS, typename T>
void hlsWindow2hlsCvMat( hls::Window<ROWS, COLS, T>& window,
                         CvMat* cvmat );

Parameters

  • window – input 2D window in hls::Window format.
  • cvmat – output 2D windowpointer to OpenCV CvMat format.

Description


Converts data from hls::Window format to OpenCV CvMat format.
Image data must be stored in window. Invoking this function will consume the data in window.
mat and window must be single-channel, and have the same size. This function is mainly for converting image processing kernels.