First time here? Check out the FAQ!
answered 2016-07-01 05:11:34 -0600
Converting a 64bit floating point matrix into a integer matrix is quite straightforward.
Mat matrix1(Size(256,256), CV_64F, matrix); Mat matix_reduced_precision; matrix1.convertTo(matrix_reduced_precision, CV_8U);