1 | initial version |
This is a really old question, but I'm going to answer it anyways just in case anyone stumbles on this issue:
You can't convert a CV_32F Mat to Bitmap using Utils.matToBitmap.
Taken directly from documentation:
"The input Mat object has to be of the types 'CV_8UC1' (gray-scale), 'CV_8UC3' (RGB) or 'CV_8UC4' (RGBA)"
Links: https://docs.opencv.org/java/2.4.9/org/opencv/android/Utils.html#bitmapToMat(Bitmap,%20org.opencv.core.Mat)
Hopefully it will help someone.