C API
enum cv::ImreadModes
// global functions UIImage* MatToUIImage(const cv::Mat& image); void UIImageToMat( const UIImage* image, cv::Mat& m, bool alphaExist = false );