5
#if !defined(__APPLE__) || !defined(__MACH__)
6
#error This header should be used in macOS ObjC/Swift projects.
9
#import <AppKit/AppKit.h>
10
#include "opencv2/core.hpp"
15CV_EXPORTS CGImageRef MatToCGImage(
const
cv::Mat& image) CF_RETURNS_RETAINED;
16CV_EXPORTS
void
CGImageToMat(
const
CGImageRef image,
cv::Mat& m,
bool
alphaExist =
false);
17CV_EXPORTS NSImage* MatToNSImage(
const
cv::Mat& image);
18CV_EXPORTS
void
NSImageToMat(
const
NSImage* image,
cv::Mat& m,
bool
alphaExist =
false);
n-dimensional dense array class
Definition:
mat.hpp:802