I’m trying to use the OpenCV’s imread() function to load a JPEG image in a cv::Mat, but it fails on iOS (the same code works on OS X). The returned matrix is allocated and valid, but empty (i.e. it contains no data).
Do the functions imread() and imwrite() work under iOS?
It works, at least when you’re saving and loading to and from the Documents-Directory of your running app.