Ask Your Question

Revision history [back]

Mat H2(3,3, CV_64F); mean you have a matrix of double. Then you must use H2.at<double>(g,g1) (and not float)

Mat H2(3,3, CV_64F); mean you have a matrix of double. Then you must use H2.at<double>(g,g1) (and not float)

If you want a matrix of float you must use Mat H2(3,3, CV_32F)