I am currently trying to concatenate cv::Mat objects using cv::hconcat(std::vector<cv::Mat> vector_of_mats, cv::Mat dest). However, I need the destination cv::Mat to be of type CV_32FC1 rather than the default CV_8UC1.
I tried constructing the destination cv::Mat as:
descriptor = cv::Mat::zeros(tmp.size(), 256, CV_32FC1); cv::hconcat(vec, descriptor); But that still produces a CV_8UC1 cv::Mat for descriptor. The type of cv::Mat in the vector is CV_8UC1. Is that where my problem lies?
Thanks in advance!