I'm using OpenCv
through the Android NDK (using c++)
I would like to save an image into MAT format and then display it on my android application.
I have saved the image in assets. imread()
does not work in the NKD because it cannot find the file path to the image, however, I can use AssetManager to load an asset and it finds the path perfectly. This method saves the data into a char* buffer.
How can I, either use something similar to imread()
to save the image into a MAT, or convert the char* buffer data into a MAT in order to display it on screen and later on manipulate with other openCV
functions?