![]() ![]() Next, I need to convert this Mat into a UIImage, the code I was using for this: +(UIImage *)UIImageFromCVMat:(cv::Mat)cvMat Then copy the pixels from result into foreground: cv::Mat foreground(image.size(),CV_8UC4, cv::Scalar(255,255,255,0)) To begin, I setup a 4 channel 8 bit matrix, set all pixels to white with alpha 0 (is this correct?). I am doing some image manipulation which creates an image on a transparent background.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |