I want to convert an iplimage to a cv::mat (not CvMat). With this code the values themes to be overflowed…
IplImage mhi32f = cvCreateImage(cvSize(draw_rect.width,draw_rect.height), IPL_DEPTH_32F, 1);
cv::Mat mhi32_mat(mhi32f);
mhi32_mat.convertTo(mhi32_mat,CV_32FC1);
Any suggestions?
as explained here, you just have to do that