hi, i want to divide a mat varible of 5x5 ones matrix by integer 25 in android opencv. i have done this in c++. the code is as follows :-
c++ code :- float kernel[5][5] = {{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1}}; Mat ker = Mat(5, 5, CV_32F, &kernel); // float data == CV_32F Mat ker=ker/25;
android code :- Mat kernel = new MatOfInt( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 );
Core.divide(25, kernel, kernel);
both of them gives different result. as i want result achived from c++ code.
thanks !!