I working on developing app for android os. I write the code in c++ and use jni.
I have to convert mat from Mat3f to Mat3b in the native c++ code.
I use convertTo :
floatImg.convertTo(ucharImg, CV_8UC3);
ucharImg type is cv::Mat3b, floatImg type is cv::Mat3f.
the issue is the performance of this code in android:
on android this convertTo code takes ~2300 milliseconds! (on window all my function takes ~150 milliseconds)
Is there is a solution to this performance issue?