I cannot get the error info ...
When I comment the gemm(), the app works well on the cellphone.
However, the app will crash without commenting the gemm()
when it runs to the gemm() line.
The wired part is that all these codes are completely OK on PC.
Any idea? Thanks.
Problem is solved. I googled the gemm() and found this page:
http://www.bytefish.de/wiki/opencv/code_snippets
There are some code snippets for gemm() usage, and I realized that two cv::mat should not only be the same size but also the exactly same data type. I checked my code and found one mat is CV_32FC1, and another one is CV_64FC1, although this works on PC, but for mobile devices, the system may have stricter requirement. After I changed the two mats to the same type, the app worked again.
Cheers!