I want to know if there is round off function in opencv.
I read double type data and I want to normalize it.
But before that I need to round off , I mean I want to remove digit under the point.
in C++, there is floor and ceil , but it doesn't work in a matrix.
Please tell me is there ceil or floor function for a matrix.
Thnx
Ow just convert your double matrix into a int8 or int 32 matrix and it will round for you :)
i'm looking for how to define it.. in http://docs.opencv.org/2.4/modules/co...
Mat matrix1(Size(256, 256), CV_64F, matrix); //change array to matrix
I made matrix which is defined like that, matrix is double type number.
If it is ok could u tell me how to write to int8 or 32..?
thnx a lot :)