Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you for the answers and comments. I prefer not to use Android NDK at the moment, and thus have tried saving Mat objects as Bitmap images. A boolean variable would be set (and amended) via Android's SharedPreferences class to signify whether the data needs to be read from the phone's storage as .Bmp (already saved), or need to be processed from scratch (which should, ideally, be only once).

  • To convert from Bmp to Mat, check this OpenCV method, bitmapToMat.
  • To convert from Mat to Bmp, check this OpenCV method, matToBitmap.

I still need to try this method in more depth, but I think it should offer a reasonable alternative.