iOS glue

// global functions

UIImage*
MatToUIImage(const cv::Mat& image);

void
UIImageToMat(
    const UIImage* image,
    cv::Mat& m,
    bool alphaExist = false
    );