hlsMat2CvMat


Synopsis

template<int ROWS, int COLS, int T>
void hlsMat2CvMat( hls::Mat<ROWS, COLS, T>& mat,
                   CvMat* cvmat );

Parameters

  • mat – input image in hls::Mat format.
  • cvmat – output image pointer in OpenCV cv::Mat format.

Description


Converts data from hls::Mat format to OpenCV CvMat format.
Image data must be stored in mat. Invoking this function will consume the data in mat.
mat and cvmat must have the same size and number of channels.