I have a matrix of type CV_32FC1
, and I want to limit its precision. For instance, it has value like this:
[0.00021743798, 0.000174778698, 0.00011652464, 5.826234e-005, 1.561136e-005]
But I want to limit its precision so that it will look like this (like in Matlab):
[0.0002, 0.0002, 0.0001, 0.0001, 0.0000]
I'm not looking for a std::setprecision
solution but rather to completely limit the matrix value precision inside, because this will affect multiplication with other matrix later in my case. Changing matrix type didn't help (at least). What should I do? Thank you.