Convert CImage to cv::Mat to employ existing mexopencv wrapper