cvMat2hlsMat


Synopsis

template<int ROWS, int COLS, int T>
void cvMat2hlsMat( cv::Mat& cv_mat,
                   hls::Mat<ROWS, COLS, T>& mat );

Parameters

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

Description


Converts data from OpenCV cv::Mat format to hls::Mat format.
Image data must be stored in cv_mat, and mat must be empty before invocations.
cv_mat and mat must have the same size and number of channels.