Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

floor of a matrix in OpenCV 2.4.3

Hi,

I have a matrix of type Mat. I want to calculate floor of the Mat. I have searched the Operations on Arrays and The core functionality 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? Platform C++