mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge pull request #18855 from Rightpoint:feature/colejd/add-apple-conversions-to-framework-builds
Expose CGImage <-> Mat conversion for iOS platforms * Add apple_conversions to framework builds This exposes CGImage <-> Mat conversion. * Export Mat <-> CGImage methods on iOS targets * Add CGImage converters to iOS objc helper class * Add CF_RETURNS_RETAINED annotations to methods returning CGImageRef
This commit is contained in:
@@ -7,5 +7,5 @@
|
||||
#import <ImageIO/ImageIO.h>
|
||||
#include "opencv2/core.hpp"
|
||||
|
||||
CV_EXPORTS CGImageRef MatToCGImage(const cv::Mat& image);
|
||||
CV_EXPORTS CGImageRef MatToCGImage(const cv::Mat& image) CF_RETURNS_RETAINED;
|
||||
CV_EXPORTS void CGImageToMat(const CGImageRef image, cv::Mat& m, bool alphaExist);
|
||||
|
||||
Reference in New Issue
Block a user