Matrix gender in OpenCV 2.4.3

I have a matrix of type Mat. I want to calculate the floor of Mata. I've looked at "Array Operations" and "Basic Functional Documentation".

Below is a sample code

Mat M = (Mat_<double>(3,3) << 1.2, 0.3, 0.9, 2.3, 1.1, 0.7, 10.2, 10,3, 8.0, 11.6);

      

I am looking for something like

floor(M, M)

or

M = floor(M)

      

Can anyone tell me how to do this? C ++ platform

+3


source to share





All Articles