[Reference Site]
Terminal Error
OpenCV Error: Assertion failed (type == B.type() &&
(type == CV_32FC1 || type == CV_64FC1 || type == CV_32FC2 || type == CV_64FC2)) in gemm,
file /home/sj/opencv-3.2.0/modules/core/src/matmul.cpp, line 1530
Using cv::Mat::type()
cv::Mat image, TF;
std::cout << "type of image: " << image.type() << std::endl;
std::cout << "type of TF: " << TF.type() << std::endl;
Using cv::Mat::convertTo(cv::Mat, cv::Type)
cv::Mat cvt_img;
cvt_img.convertTo(image, CV_64F);
Reference Site: